Permalink
Browse files

Added account_subdomain as alias for request.subdomains.first

  • Loading branch information...
1 parent de940e5 commit 00d7fd2e22a8129d741912255c8a3a3c7dea0c8a @dhh dhh committed Nov 4, 2005
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/account_location.rb
View
@@ -43,4 +43,8 @@ def account_domain
account_domain << request.subdomains[1..-1].join(".") + "." if request.subdomains.size > 1
account_domain << request.domain + request.port_string
end
+
+ def account_subdomain
+ request.subdomains.first
+ end
end

0 comments on commit 00d7fd2

Please sign in to comment.