Sha256: f90eeec4307b42b27246f8ed817a5e27d8ede39c0c583feb04a7aeb77d04ec53

Contents?: true

Size: 236 Bytes

Versions: 1

Compression:

Stored size: 236 Bytes

Contents

class User < ActiveRecord::Base
  has_secure_password
  attr_accessible :username, :password

  class << self
    def authenticate(username, password)
      self.find_by_username(username).try(:authenticate, password)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asset_host_core-2.0.0.beta spec/internal/app/models/user.rb