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

Use merge! instead reverse_merge! here

This commit is contained in:
Santiago Pastorino 2012-05-14 17:51:54 -03:00
parent 683fc4db00
commit 2c0add7103

View file

@ -108,7 +108,7 @@ module ActionView
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()'