Module Devise::Models::Authenticatable::ClassMethods
In: lib/devise/models/authenticatable.rb

Methods

Public Instance methods

Find first record based on conditions given (ie by the sign in form). Overwrite to add customized conditions, create a join, or maybe use a namedscope to filter records while authenticating. Example:

  def self.find_for_authentication(conditions={})
    conditions[:active] = true
    super
  end

Protected Instance methods

Generate a token by looping and ensuring does not already exist.

[Validate]