Module: Devise::Models::AuthyAuthenticatable

Extended by:
ActiveSupport::Concern
Defined in:
lib/devise-authy/models/authy_authenticatable.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#with_authy_authentication?(request) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
11
12
13
# File 'lib/devise-authy/models/authy_authenticatable.rb', line 7

def with_authy_authentication?(request)
  if self.authy_id.present? && self.authy_enabled
    return true
  end

  return false
end