Sha256: 8d4cb7558be15c80f54266a00aae4a9cf9532eaeab93db01592b8e382e094589
Contents?: true
Size: 829 Bytes
Versions: 3
Compression:
Stored size: 829 Bytes
Contents
require 'doorkeeper/models/mongoid/revocable' require 'doorkeeper/models/mongoid/scopes' require 'doorkeeper/models/mongoid/version' module Doorkeeper class AccessGrant include Mongoid::Document include Mongoid::Timestamps include Doorkeeper::Models::Mongoid::Revocable include Doorkeeper::Models::Mongoid::Scopes extend Doorkeeper::Models::Mongoid::Version self.store_in collection: :oauth_access_grants if defined?(Moped::BSON) field :resource_owner_id, type: Moped::BSON::ObjectId else field :resource_owner_id, type: BSON::ObjectId end 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
3 entries across 3 versions & 1 rubygems