Method: Mongoid::Contextual::Mongo#length
- Defined in:
- lib/mongoid/contextual/mongo.rb
#length ⇒ Integer Also known as: size
Returns the number of documents in the database matching the query selector.
289 290 291 |
# File 'lib/mongoid/contextual/mongo.rb', line 289 def length self.count end |