Method: MongoMapper::Document::ClassMethods#first
- Defined in:
- lib/mongo_mapper/document.rb
#first(options = {}) ⇒ Object
Returns the first document in the ordered collection as described by options.
101 102 103 |
# File 'lib/mongo_mapper/document.rb', line 101 def first(={}) find_one() end |