Sha256: 795fd84148eec9cb40ee8428751be0e6665a422c21a604e7a7671fd7a42536df

Contents?: true

Size: 215 Bytes

Versions: 7

Compression:

Stored size: 215 Bytes

Contents

class User < ActiveRecord::Base
  if respond_to?(:attr_accessible)
    attr_accessible :name, :password
  end

  def self.authenticate!(name, password)
    User.where(name: name, password: password).first
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
doorkeeper-4.0.0.rc2 spec/dummy/app/models/user.rb
doorkeeper-4.0.0.rc1 spec/dummy/app/models/user.rb
doorkeeper-3.1.0 spec/dummy/app/models/user.rb
doorkeeper-3.0.1 spec/dummy/app/models/user.rb
doorkeeper-3.0.0 spec/dummy/app/models/user.rb
doorkeeper-3.0.0.rc2 spec/dummy/app/models/user.rb
doorkeeper-3.0.0.rc1 spec/dummy/app/models/user.rb