Module: Devise::Models::W3Authenticatable::ClassMethods

Defined in:
lib/devise_w3_authenticatable/model.rb

Instance Method Summary collapse

Instance Method Details

#find_for_w3_authentication(conditions = {}) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/devise_w3_authenticatable/model.rb', line 20

def find_for_w3_authentication(conditions={})
  if DeviseW3Authenticatable.auto_create_user
    find_or_initialize_by_email(conditions[:email])
  else
    find_by_email(conditions[:email])
  end
end