method
extract_domain_from
v4.2.1 -
Show latest stable
- Class:
ActionDispatch::Http::URL
extract_domain_from(host, tld_length)private
No documentation available.
# File actionpack/lib/action_dispatch/http/url.rb, line 76
def extract_domain_from(host, tld_length)
host.split('.').last(1 + tld_length).join('.')
end