Class: Brightcontent::AdminUser

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

Class Method Summary collapse

Instance 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

Instance Method Details

#resourcesObject



11
12
13
# File 'app/models/brightcontent/admin_user.rb', line 11

def resources
  Brightcontent::RoutesParser.new.resources
end