Skip to content

Commit

Permalink
Use merge! instead reverse_merge! here
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed May 14, 2012
1 parent 683fc4d commit 2c0add7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/url_helper.rb
Expand Up @@ -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()'
Expand Down

0 comments on commit 2c0add7

Please sign in to comment.