Skip to content

Commit

Permalink
:subdomain can now be specified with a value of false in url_for, all…
Browse files Browse the repository at this point in the history
…owing for subdomain(s) removal from the host during link generation. Closes rails#2025
  • Loading branch information
ksob committed Oct 4, 2011
1 parent bd0695c commit 28de950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/http/url.rb
Expand Up @@ -64,7 +64,7 @@ def rewrite_authentication(options)
end

def host_or_subdomain_and_domain(options)
return options[:host] if options[:subdomain].nil? && options[:domain].nil? #options[:subdomain] || options[:subdomain] == false || options[:domain]
return options[:host] if options[:subdomain].nil? && options[:domain].nil?

tld_length = options[:tld_length] || @@tld_length

Expand Down

0 comments on commit 28de950

Please sign in to comment.