Class: BrickLayer::Administrator

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::SecurePassword, Mongoid::Document
Defined in:
app/models/brick_layer/administrator.rb

Class Method Summary collapse

Class Method Details

.authenticate(username, password) ⇒ Object



16
17
18
# File 'app/models/brick_layer/administrator.rb', line 16

def self.authenticate(username, password)
  where(:username => username).try(:first).try(:authenticate, password)
end