diff options
author | schneems <richard.schneeman@gmail.com> | 2015-07-25 00:30:43 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2015-07-30 12:31:04 -0500 |
commit | 045cdd3a3d50b06019361cf7bec57f2521facff6 (patch) | |
tree | d4ad5050532f516798cd682fe61df81c95f30391 /actionpack/lib | |
parent | bff61ba27cb113b90f210a30173a8e66602615ca (diff) | |
download | rails-045cdd3a3d50b06019361cf7bec57f2521facff6.tar.gz rails-045cdd3a3d50b06019361cf7bec57f2521facff6.tar.bz2 rails-045cdd3a3d50b06019361cf7bec57f2521facff6.zip |
Freeze a string in comparator
Saves 888 string objects per request.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index d93989a449..84aeb65007 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -680,7 +680,7 @@ module ActionDispatch # Move 'index' action from options to recall def normalize_action! - if @options[:action] == 'index' + if @options[:action] == 'index'.freeze @recall[:action] = @options.delete(:action) end end |