Method: Devise::Models::DatabaseAuthenticatable#after_database_authentication
- Defined in:
- lib/devise/models/database_authenticatable.rb
#after_database_authentication ⇒ Object
A callback initiated after successfully authenticating. This can be used to insert your own logic that is only run after the user successfully authenticates.
Example:
def after_database_authentication
self.update_attribute(:invite_code, nil)
end
127 128 |
# File 'lib/devise/models/database_authenticatable.rb', line 127 def after_database_authentication end |