method

extract_domain_from

rails 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 96
          def extract_domain_from(host, tld_length)
            host.split(".").last(1 + tld_length).join(".")
          end