Skip to content
Browse files

instance_variables returns symbols, so we should use symbols in our list

  • Loading branch information...
1 parent f8e5022 commit 32e94a488fb68dc169ce89a22cec46527d6ffe5b @tenderlove tenderlove committed Nov 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/abstract_controller/rendering.rb
View
2 actionpack/lib/abstract_controller/rendering.rb
@@ -58,7 +58,7 @@ def rendered_format
DEFAULT_PROTECTED_INSTANCE_VARIABLES = %w(
@_action_name @_response_body @_formats @_prefixes @_config
@_view_context_class @_view_renderer @_lookup_context
- )
+ ).map(&:to_sym)
# This method should return a hash with assigns.
# You can overwrite this configuration per controller.

0 comments on commit 32e94a4

Please sign in to comment.
Something went wrong with that request. Please try again.