Sha256: d8effa3c086fb301daf3b8421dfd8e561cb32a529c4994d7a5c86b2d43cfbad7
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
require 'doorkeeper/models/mongoid/revocable' require 'doorkeeper/models/mongoid/scopes' module Doorkeeper class AccessGrant include Mongoid::Document include Mongoid::Timestamps include Doorkeeper::Models::Mongoid::Revocable include Doorkeeper::Models::Mongoid::Scopes self.store_in collection: :oauth_access_grants field :resource_owner_id, :type => Moped::BSON::ObjectId field :application_id, :type => Hash field :token, :type => String field :expires_in, :type => Integer field :redirect_uri, :type => String field :revoked_at, :type => DateTime index({ token: 1 }, { unique: true }) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchkeeper-0.6.7 | lib/doorkeeper/models/mongoid3/access_grant.rb |