Sha256: e8f915773aa0b69ec9d65a184cf97836813411742c326e22c93541b156a06318
Contents?: true
Size: 656 Bytes
Versions: 2
Compression:
Stored size: 656 Bytes
Contents
# case DOORKEEPER_ORM # when :active_record # class User < ActiveRecord::Base # end # when :mongoid2, :mongoid3, :mongoid4 # class User # include Mongoid::Document # include Mongoid::Timestamps # # field :name, type: String # field :password, type: String # end # when :mongo_mapper # class User # include MongoMapper::Document # timestamps! # # key :name, String # key :password, String # end # end # # class User # if ::Rails.version.to_i < 4 # attr_accessible :name, :password # end # # def self.authenticate!(name, password) # User.where(name: name, password: password).first # end # end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-openid_connect-1.0.1 | spec/dummy/app/models/user.rb |
doorkeeper-openid_connect-1.0.0 | spec/dummy/app/models/user.rb |