Class: Omniauth::Rails::AuthorizationTypes::Domains
- Defined in:
- app/models/omniauth/rails/authorization_types/domains.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Omniauth::Rails::AuthorizationTypes::Base
Instance Method Details
#authorized? ⇒ Boolean
6 7 8 |
# File 'app/models/omniauth/rails/authorization_types/domains.rb', line 6 def domains.any? { |domain| email_domain.casecmp(domain).zero? } end |