3
4
5
6
7
8
9
10
11
|
# File 'lib/subdomain_fu/url_rewriter.rb', line 3
def url_for_with_subdomains(options)
if SubdomainFu.needs_rewrite?(options[:subdomain], options[:host] || default_url_options[:host]) || options[:only_path] == false
options[:only_path] = false if SubdomainFu.override_only_path?
options[:host] = SubdomainFu.rewrite_host_for_subdomains(options.delete(:subdomain), options[:host] || default_url_options[:host])
else
options.delete(:subdomain)
end
url_for_without_subdomains(options)
end
|