Class: Devise::Strategies::NaughtAuthentication

Inherits:
Authenticatable
  • Object
show all
Defined in:
lib/devise/naught_authentication/strategy.rb

Instance Method Summary collapse

Instance Method Details

#authenticate!Object



13
14
15
# File 'lib/devise/naught_authentication/strategy.rb', line 13

def authenticate!
  fail! "This is Naught Authentication"
end

#valid?Boolean

This check is run before authenticate! is called to determine if this authentication strategy is applicable. In this case we only try to authenticate if the login and password are present



9
10
11
# File 'lib/devise/naught_authentication/strategy.rb', line 9

def valid?
  false
end