Sha256: 1a4ca8c715c6928b955c40e7511b34834dada2ff33776344f524e5bdafeb90b1

Contents?: true

Size: 515 Bytes

Versions: 13

Compression:

Stored size: 515 Bytes

Contents

module Doorkeeper
  class AccessGrant
    include MongoMapper::Document

    include AccessGrantMixin

    safe
    timestamps!

    set_collection_name 'oauth_access_grants'

    key :resource_owner_id, ObjectId
    key :application_id,    ObjectId
    key :token,             String
    key :scopes,            String
    key :expires_in,        Integer
    key :redirect_uri,      String
    key :revoked_at,        DateTime

    def self.create_indexes
      ensure_index :token, unique: true
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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