Sha256: aef617c5492313e4aa1fda5ed83204e4dcedefcf71048bccc99e48f9ba3b25ae
Contents?: true
Size: 337 Bytes
Versions: 3
Compression:
Stored size: 337 Bytes
Contents
# frozen_string_literal: true class User include Mongoid::Document include Mongoid::Timestamps field :name, type: String field :password, type: String attr_accessible :name, :password if defined?(::ProtectedAttributes) def self.authenticate!(name, password) User.where(name: name, password: password).first end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-mongodb-5.4.0 | spec/dummy/app/models/user.rb |
doorkeeper-mongodb-5.3.0 | spec/dummy/app/models/user.rb |
doorkeeper-mongodb-5.2.3 | spec/dummy/app/models/user.rb |