Sha256: 1f7d2e85ce0b63670c5f4b883786c7ccc9a135596d62a57a5f0a2b4c48514609
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
require 'doorkeeper/orm/mongoid4/concerns/scopes' require 'doorkeeper-mongodb/compatible' module Doorkeeper class AccessGrant include DoorkeeperMongodb::Compatible include Mongoid::Document include Mongoid::Timestamps include AccessGrantMixin include Models::Mongoid4::Scopes self.store_in collection: :oauth_access_grants field :resource_owner_id, type: BSON::ObjectId 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
doorkeeper-mongodb-3.0.0 | lib/doorkeeper/orm/mongoid4/access_grant.rb |
dd-doorkeeper-mongodb-3.0.0 | lib/doorkeeper/orm/mongoid4/access_grant.rb |