config/initializers/apartment/subdomain_exclusions.rb
Apartment::Elevators::Subdomain.excluded_subdomains = ['www']
Above doesn't seems to be working. I'm using rails 5.0.2.
in apartment.rb I have this
Apartment::Elevators::Subdomain.excluded_subdomains = ['www', 'admin']
Rails.application.config.middleware.use'Apartment::Elevators::Subdomain'
To test on local i have added hosts
127.0.0.1 www.example.com admin.example.com
on www.example.com I got error Apartment::TenantNotFound
What I'm missing here.