Sha256: df931632defed281e003321f68a0a4e489ec639bbe5a68602ff30f84d2c5695d
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
module Doorkeeper class AccessGrant include MongoMapper::Document safe timestamps! set_collection_name 'oauth_access_grants' key :resource_owner_id, ObjectId key :application_id, ObjectId key :token, String key :expires_in, Integer key :redirect_uri, String key :revoked_at, DateTime key :scopes, String def scopes=(value) write_attribute :scopes, value if value.present? end def self.create_indexes ensure_index :token, unique: true end end end
Version data entries
3 entries across 3 versions & 1 rubygems