diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-11-06 13:22:37 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-11-06 13:24:00 -0800 |
commit | 32e94a488fb68dc169ce89a22cec46527d6ffe5b (patch) | |
tree | 8dbc8acde05777e22dd9748fcc3a71764ad87d51 /actionpack/lib | |
parent | f8e5022c73679f41db9bb6743179bab4571fb28e (diff) | |
download | rails-32e94a488fb68dc169ce89a22cec46527d6ffe5b.tar.gz rails-32e94a488fb68dc169ce89a22cec46527d6ffe5b.tar.bz2 rails-32e94a488fb68dc169ce89a22cec46527d6ffe5b.zip |
instance_variables returns symbols, so we should use symbols in our list
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index 6f6079d3c5..23354985f9 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -58,7 +58,7 @@ module AbstractController 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. |