Skip to content

Commit 2c0add7

Browse files
committed
Use merge! instead reverse_merge! here
1 parent 683fc4d commit 2c0add7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_view/helpers/url_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def url_for(options = nil)
108108
options
109109
when nil, Hash
110110
options ||= {}
111-
options = options.symbolize_keys.reverse_merge!(:only_path => options[:host].nil?)
111+
options = { :only_path => options[:host].nil? }.merge!(options.symbolize_keys)
112112
super
113113
when :back
114114
controller.request.env["HTTP_REFERER"] || 'javascript:history.back()'

0 commit comments

Comments
 (0)