Class: Doorkeeper::AccessGrant

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
AccessGrantMixin, Models::Mongoid2::Scopes, Models::Mongoid3::Scopes, Models::Mongoid4::Scopes, MongoMapper::Document, Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/doorkeeper/orm/mongoid4/access_grant.rb,
lib/doorkeeper/orm/mongoid3/access_grant.rb,
lib/doorkeeper/orm/mongoid2/access_grant.rb,
lib/doorkeeper/orm/mongo_mapper/access_grant.rb,
lib/doorkeeper/orm/active_record/access_grant.rb

Class Method Summary collapse

Methods included from Models::Mongoid4::Scopes

#scopes=

Methods included from Models::Scopes

#includes_scope?, #scopes, #scopes_string

Methods included from Models::Accessible

#accessible?

Methods included from Models::Revocable

#revoke, #revoked?

Methods included from Models::Expirable

#expired?, #expires_in_seconds

Class Method Details

.create_indexesObject


20
21
22
# File 'lib/doorkeeper/orm/mongo_mapper/access_grant.rb', line 20

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