use industrial code to find the subdomain. use arel scopes that are explicit and expressive.
Merge pull request #7 from penguincoder/master

use industrial code to find the subdomain. use arel scopes that are expl...