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

just set the host, no need for another hash allocation / merge!

This commit is contained in:
Aaron Patterson 2014-08-01 11:55:47 -07:00
parent 8cbcd19d70
commit ea7fc2e7c0

View file

@ -85,7 +85,7 @@ module ActionController
if host_or_options.is_a?(Hash)
options.merge!(host_or_options)
elsif host_or_options
options.merge!(:host => host_or_options)
options[:host] = host_or_options
end
secure_url = ActionDispatch::Http::URL.url_for(options.slice(*URL_OPTIONS))