1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

only "normalize" once

This commit is contained in:
Aaron Patterson 2015-09-14 16:25:48 -07:00
parent 5e3e5de48b
commit 2f0bc1f789

View file

@ -64,7 +64,7 @@ module ActionController
def initialize(controller, env, defaults)
@controller = controller
@defaults = defaults
@env = normalize_keys(defaults).merge normalize_keys(env)
@env = normalize_keys defaults.merge(env)
@env['action_dispatch.routes'] = controller._routes
end