Skip to content
Browse files

save a hash allocation per request.

  • Loading branch information...
1 parent 5b27f1e commit dde91e9bf5ab246f0f684b40288b272f4ba9a699 @tenderlove tenderlove committed Aug 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/engine.rb
View
2 railties/lib/rails/engine.rb
@@ -509,7 +509,7 @@ def endpoint
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

0 comments on commit dde91e9

Please sign in to comment.
Something went wrong with that request. Please try again.