diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-08-15 12:53:22 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-08-15 12:53:22 -0300 |
commit | 8ec185a00bef7d2452214343c5d71685294af507 (patch) | |
tree | 548bd8a376a63a4eea10735b2e4e1fb2ff0aa219 | |
parent | a293812bffbc6e634e1a6e6794e9dec537d522a3 (diff) | |
parent | 174b9a30976f5332aad5dceffb2bac1c53931537 (diff) | |
download | rails-8ec185a00bef7d2452214343c5d71685294af507.tar.gz rails-8ec185a00bef7d2452214343c5d71685294af507.tar.bz2 rails-8ec185a00bef7d2452214343c5d71685294af507.zip |
Merge pull request #21249 from rodzyn/initialize_symbols
Initialize symbols instead of mapping to_sym on the set of strings
-rw-r--r-- | actionpack/lib/abstract_controller/rendering.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index 5514213ad8..887196b3d2 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -54,11 +54,11 @@ module AbstractController Mime::TEXT end - DEFAULT_PROTECTED_INSTANCE_VARIABLES = Set.new %w( + DEFAULT_PROTECTED_INSTANCE_VARIABLES = Set.new %i( @_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. # You can overwrite this configuration per controller. |