Sha256: 92bff70fa1ed4baeff1e3b5f5404439a68fc980777cd0aff39fd472c5c5c8556
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
case DOORKEEPER_ORM when :active_record class User < ActiveRecord::Base end when :mongoid2, :mongoid3 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 def self.authenticate!(name, password) User.where(:name => name, :password => password).first end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-0.7.0 | spec/dummy/app/models/user.rb |