Class: Brightcontent::AdminUser

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/brightcontent/admin_user.rb

Class Method Summary collapse

Class Method Details

.authenticate(email, password) ⇒ Object



7
8
9
# File 'app/models/brightcontent/admin_user.rb', line 7

def self.authenticate(email, password)
  find_by_email(email).try :authenticate, password
end