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
16 17 18 |
# File 'lib/doorkeeper-mongodb/compatible.rb', line 16 def last asc(:id).last end |
#table_exists? ⇒ Boolean
10 11 12 |
# File 'lib/doorkeeper-mongodb/compatible.rb', line 10 def table_exists?(*) true # Doorkeeper deprecated this end |
#transaction(_ = {}, &_block) ⇒ Object
6 7 8 |
# File 'lib/doorkeeper-mongodb/compatible.rb', line 6 def transaction(_ = {}, &_block) yield end |