Method: Mongoid::Contexts::Enumerable#count
- Defined in:
- lib/mongoid/contexts/enumerable.rb
#count ⇒ Object
Gets the number of documents in the array. Delegates to size.
38 39 40 |
# File 'lib/mongoid/contexts/enumerable.rb', line 38 def count @count ||= documents.size end |