Sha256: 8a298000dfc0d8885b620b130bf0aabfc12dadd2cd1c232159c4a6238cfb625a

Contents?: true

Size: 302 Bytes

Versions: 7

Compression:

Stored size: 302 Bytes

Contents

module Brightcontent
  class AdminUser < ActiveRecord::Base
    has_secure_password
    validates_uniqueness_of :email
    attr_accessible *column_names if defined? ProtectedAttributes

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
brightcontent-core-2.3.4 app/models/brightcontent/admin_user.rb
brightcontent-core-2.3.3 app/models/brightcontent/admin_user.rb
brightcontent-core-2.3.2 app/models/brightcontent/admin_user.rb
brightcontent-core-2.3.1 app/models/brightcontent/admin_user.rb
brightcontent-core-2.3.0 app/models/brightcontent/admin_user.rb
brightcontent-core-2.2.2 app/models/brightcontent/admin_user.rb
brightcontent-core-2.2.1 app/models/brightcontent/admin_user.rb