module ActionDispatch::Http::URL

def subdomain(tld_length = 1)

def subdomain(tld_length = 1)
  subdomains(tld_length).join('.')
end