method
extract_subdomains_from
rails latest stable - Class:
ActionDispatch::Http::URL
extract_subdomains_from(host, tld_length)private
No documentation available.
# File actionpack/lib/action_dispatch/http/url.rb, line 100
def extract_subdomains_from(host, tld_length)
parts = host.split(".")
parts[0..-(tld_length + 2)]
end