Method: Devise::Models::DatabaseAuthenticatable#after_database_authentication

Defined in:
lib/devise/models/database_authenticatable.rb

#after_database_authenticationObject

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


172
173
# File 'lib/devise/models/database_authenticatable.rb', line 172

def after_database_authentication
end