Skip to content
Browse files

Use merge! instead reverse_merge! here

  • Loading branch information...
1 parent 683fc4d commit 2c0add7103e967a7de2df42675eb49e093327c58 @spastorino spastorino committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/url_helper.rb
View
2 actionpack/lib/action_view/helpers/url_helper.rb
@@ -108,7 +108,7 @@ def url_for(options = nil)
options
when nil, Hash
options ||= {}
- options = options.symbolize_keys.reverse_merge!(:only_path => options[:host].nil?)
+ options = { :only_path => options[:host].nil? }.merge!(options.symbolize_keys)
super
when :back
controller.request.env["HTTP_REFERER"] || 'javascript:history.back()'

0 comments on commit 2c0add7

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