Class: Omniauth::Rails::AuthorizationTypes::Regex

Inherits:
Base
  • Object
show all
Defined in:
app/models/omniauth/rails/authorization_types/regex.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Omniauth::Rails::AuthorizationTypes::Base

Instance Method Details

#authorized?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/models/omniauth/rails/authorization_types/regex.rb', line 6

def authorized?
  !regex.match(email).nil?
end