Sha256: f7c782338f00f8925b020396d959fac1c287f79353ad567e6c077a73ebbb28cd
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
require 'doorkeeper/models/mongo_mapper/revocable' module Doorkeeper class AccessGrant include MongoMapper::Document include Doorkeeper::Models::MongoMapper::Revocable 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchkeeper-0.6.7 | lib/doorkeeper/models/mongo_mapper/access_grant.rb |