# File lib/action_controller/request.rb, line 117 def subdomains(tld_length = 1) parts = host.split('.') parts - parts.last(1 + tld_length) end