Sha256: 2bee8baa79f6a31a04b7703360bc34b8e26aa8a380fc4bf0ebbc80538931f8ee

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

class Account < MLS::Model

  include MLS::Avatar
  
  belongs_to :organization

  has_many :agencies, :inverse_of => :agent, :foreign_key => :agent_id
  
  # def self.authenticate(email, pass)
  #   account = where(arel_table[:email].eq(email.try(:downcase)).and(arel_table[:password_digest].not_eq(nil))).first
  #   account && BCrypt::Password.new(account.password_digest) == pass ? account : nil
  # end


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mls-1.1.1 lib/mls/account.rb
mls-1.1.0 lib/mls/account.rb