Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added account_subdomain as alias for request.subdomains.first

  • Loading branch information...
commit 00d7fd2e22a8129d741912255c8a3a3c7dea0c8a 1 parent de940e5
@dhh dhh authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/account_location.rb
View
4 lib/account_location.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.