Method: Devise::Models::Lockable#active_for_authentication?
- Defined in:
- lib/devise/models/lockable.rb
#active_for_authentication? ⇒ Boolean
Overwrites active_for_authentication? from Devise::Models::Activatable for locking purposes by verifying whether a user is active to sign in or not based on locked?
89 90 91 |
# File 'lib/devise/models/lockable.rb', line 89 def active_for_authentication? super && !access_locked? end |