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:
parent
a293812bff
commit
174b9a3097
1 changed files with 2 additions and 2 deletions
|
@ -54,11 +54,11 @@ module AbstractController
|
||||||
Mime::TEXT
|
Mime::TEXT
|
||||||
end
|
end
|
||||||
|
|
||||||
DEFAULT_PROTECTED_INSTANCE_VARIABLES = Set.new %w(
|
DEFAULT_PROTECTED_INSTANCE_VARIABLES = Set.new %i(
|
||||||
@_action_name @_response_body @_formats @_prefixes @_config
|
@_action_name @_response_body @_formats @_prefixes @_config
|
||||||
@_view_context_class @_view_renderer @_lookup_context
|
@_view_context_class @_view_renderer @_lookup_context
|
||||||
@_routes @_db_runtime
|
@_routes @_db_runtime
|
||||||
).map(&:to_sym)
|
)
|
||||||
|
|
||||||
# This method should return a hash with assigns.
|
# This method should return a hash with assigns.
|
||||||
# You can overwrite this configuration per controller.
|
# You can overwrite this configuration per controller.
|
||||||
|
|
Loading…
Reference in a new issue