1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Initialize symbols instead of mapping to_sym on the set of strings

This commit is contained in:
Marcin Olichwirowicz 2015-08-15 17:45:13 +02:00
parent a293812bff
commit 174b9a3097

View file

@ -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.