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:
parent
8cbcd19d70
commit
ea7fc2e7c0
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue