Sha256: 2e1d4869a17293d3761bbd3a1ad750ef07f6cf35cc42dc4326cd07f7a78815af

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 Bytes

Contents

require 'doorkeeper/models/mongoid/scopes'

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

    self.store_in :oauth_access_grants

    field :resource_owner_id, type: Integer
    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, unique: true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
doorkeeper-1.4.2 lib/doorkeeper/models/mongoid2/access_grant.rb
doorkeeper-1.4.1 lib/doorkeeper/models/mongoid2/access_grant.rb
doorkeeper-1.4.0 lib/doorkeeper/models/mongoid2/access_grant.rb