Permalink
Browse files

Avoid a new hash object

  • Loading branch information...
1 parent 4e09c50 commit a9c0eb439263a10937918a32b19d23478245d7f8 @carlosantoniodasilva carlosantoniodasilva committed Jul 31, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/metal/url_for.rb
@@ -28,7 +28,7 @@ def url_options
:port => request.optional_port,
:protocol => request.protocol,
:_recall => request.path_parameters
- }.merge(super).freeze
+ }.merge!(super).freeze
if (same_origin = _routes.equal?(env["action_dispatch.routes".freeze])) ||
(script_name = env["ROUTES_#{_routes.object_id}_SCRIPT_NAME"]) ||

0 comments on commit a9c0eb4

Please sign in to comment.