Sha256: 36c802c492431ba436e3e08daf5379b4807983f5074038fa0926adccd2b73768

Contents?: true

Size: 581 Bytes

Versions: 13

Compression:

Stored size: 581 Bytes

Contents

require 'doorkeeper/orm/mongoid3/concerns/scopes'

module Doorkeeper
  class AccessGrant
    include Mongoid::Document
    include Mongoid::Timestamps

    include AccessGrantMixin
    include Models::Mongoid3::Scopes

    self.store_in collection: :oauth_access_grants

    field :resource_owner_id, type: Moped::BSON::ObjectId
    field :application_id, type: Moped::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

13 entries across 13 versions & 1 rubygems

Version Path
doorkeeper-2.2.2 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.2.1 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.2.0 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.1.4 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.1.3 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.1.2 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.1.1 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.1.0 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.0.1 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.0.0 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.0.0.rc3 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.0.0.rc2 lib/doorkeeper/orm/mongoid3/access_grant.rb
doorkeeper-2.0.0.alpha1 lib/doorkeeper/orm/mongoid3/access_grant.rb