Permalink
Browse files

these variables are also private

  • Loading branch information...
1 parent 32e94a4 commit 697acc40253b360a86c358cbdd928f38cedd6883 @tenderlove tenderlove committed Nov 6, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/abstract_controller/rendering.rb
@@ -58,6 +58,7 @@ def rendered_format
DEFAULT_PROTECTED_INSTANCE_VARIABLES = %w(
@_action_name @_response_body @_formats @_prefixes @_config
@_view_context_class @_view_renderer @_lookup_context
+ @_routes @_db_runtime
).map(&:to_sym)
# This method should return a hash with assigns.

1 comment on commit 697acc4

@egilburg

Perhaps treat all instance variables beginning with '_' as private?

Please sign in to comment.