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:
parent
683fc4db00
commit
2c0add7103
1 changed files with 1 additions and 1 deletions
|
@ -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()'
|
||||
|
|
Loading…
Reference in a new issue