Module: DoorkeeperMongodb::Compatible::ClassMethods
- Defined in:
- lib/doorkeeper-mongodb/compatible.rb
Instance Method Summary collapse
-
#last ⇒ Object
Mongoid::Contextual::Mongo#last no longer guarantee order www.rubydoc.info/github/mongoid/mongoid/Mongoid%2FContextual%2FMongo:last.
- #table_exists? ⇒ Boolean
- #transaction(_ = {}, &_block) ⇒ Object
Instance Method Details
#last ⇒ Object
Mongoid::Contextual::Mongo#last no longer guarantee order www.rubydoc.info/github/mongoid/mongoid/Mongoid%2FContextual%2FMongo:last
18 19 20 |
# File 'lib/doorkeeper-mongodb/compatible.rb', line 18 def last asc(:id).last end |
#table_exists? ⇒ Boolean
12 13 14 |
# File 'lib/doorkeeper-mongodb/compatible.rb', line 12 def table_exists?(*) true # Doorkeeper deprecated this end |
#transaction(_ = {}, &_block) ⇒ Object
8 9 10 |
# File 'lib/doorkeeper-mongodb/compatible.rb', line 8 def transaction(_ = {}, &_block) yield end |