aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorMarcin Olichwirowicz <olichwirowicz@gmail.com>2015-08-15 17:45:13 +0200
committerMarcin Olichwirowicz <olichwirowicz@gmail.com>2015-08-15 17:45:13 +0200
commit174b9a30976f5332aad5dceffb2bac1c53931537 (patch)
tree548bd8a376a63a4eea10735b2e4e1fb2ff0aa219 /actionpack/lib
parenta293812bffbc6e634e1a6e6794e9dec537d522a3 (diff)
downloadrails-174b9a30976f5332aad5dceffb2bac1c53931537.tar.gz
rails-174b9a30976f5332aad5dceffb2bac1c53931537.tar.bz2
rails-174b9a30976f5332aad5dceffb2bac1c53931537.zip
Initialize symbols instead of mapping to_sym on the set of strings
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/abstract_controller/rendering.rb4
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.