lib/rails_ext/action_controller/micelaneous.rb in rails-ext-0.3.9 vs lib/rails_ext/action_controller/micelaneous.rb in rails-ext-0.3.10
- old
+ new
@@ -42,10 +42,10 @@
# Delete 'nil' parameters
to_delete = []
options.each{|k, v| to_delete << k if v.nil?}
to_delete.each{|k| options.delete k}
- host = options.delete :host
+ host = options.delete(:host) || options.delete('host')
url << "?#{options.to_query}" unless options.empty?
url._url_format = options[:format] if options[:format] # hack for links with ajax support
url
\ No newline at end of file