diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-30 14:24:14 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-30 14:24:14 -0700 |
commit | 5c5c1cc998c2cb9c08daa3f8fbd2d8625e9da6b6 (patch) | |
tree | 2b191ddeed7ae98679dc7b77e746dc6ca1283797 /actionpack | |
parent | fd924371126a50789d31582b9efa074fd47a803e (diff) | |
download | rails-5c5c1cc998c2cb9c08daa3f8fbd2d8625e9da6b6.tar.gz rails-5c5c1cc998c2cb9c08daa3f8fbd2d8625e9da6b6.tar.bz2 rails-5c5c1cc998c2cb9c08daa3f8fbd2d8625e9da6b6.zip |
don't allocate string on hash access
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/metal/url_for.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/url_for.rb b/actionpack/lib/action_controller/metal/url_for.rb index 754249cbc8..0b7a777eeb 100644 --- a/actionpack/lib/action_controller/metal/url_for.rb +++ b/actionpack/lib/action_controller/metal/url_for.rb @@ -30,7 +30,7 @@ module ActionController :_recall => request.symbolized_path_parameters ).freeze - if (same_origin = _routes.equal?(env["action_dispatch.routes"])) || + if (same_origin = _routes.equal?(env["action_dispatch.routes".freeze])) || (script_name = env["ROUTES_#{_routes.object_id}_SCRIPT_NAME"]) || (original_script_name = env['ORIGINAL_SCRIPT_NAME']) |