mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
save a hash allocation per request.
This commit is contained in:
parent
5b27f1ea18
commit
dde91e9bf5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue