module DoorkeeperMongodb::Compatible::ClassMethods

Public Instance Methods

last() click to toggle source

Mongoid::Contextual::Mongo#last no longer guarantee order www.rubydoc.info/github/mongoid/mongoid/Mongoid%2FContextual%2FMongo:last

# File lib/doorkeeper-mongodb/compatible.rb, line 18
def last
  asc(:id).last
end
table_exists?(*) click to toggle source
# File lib/doorkeeper-mongodb/compatible.rb, line 12
def table_exists?(*)
  true # Doorkeeper deprecated this
end
transaction(_ = {}) { || ... } click to toggle source
# File lib/doorkeeper-mongodb/compatible.rb, line 8
def transaction(_ = {}, &_block)
  yield
end