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