diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-08-08 11:41:54 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-08-08 11:41:54 -0700 |
commit | dde91e9bf5ab246f0f684b40288b272f4ba9a699 (patch) | |
tree | 7dd4e40be314eab0e55072714c3454a88110b7ca /railties/lib | |
parent | 5b27f1ea18024f900b0f0431707f7ed164f104c6 (diff) | |
download | rails-dde91e9bf5ab246f0f684b40288b272f4ba9a699.tar.gz rails-dde91e9bf5ab246f0f684b40288b272f4ba9a699.tar.bz2 rails-dde91e9bf5ab246f0f684b40288b272f4ba9a699.zip |
save a hash allocation per request.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index aa4f94ef1b..dc3da1eb41 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -509,7 +509,7 @@ module Rails def call(env) env.merge!(env_config) if env['SCRIPT_NAME'] - env.merge! "ROUTES_#{routes.object_id}_SCRIPT_NAME" => env['SCRIPT_NAME'].dup + env["ROUTES_#{routes.object_id}_SCRIPT_NAME"] = env['SCRIPT_NAME'].dup end app.call(env) end |