Method: Mongoid::Findable#first
- Defined in:
- lib/mongoid/findable.rb
#first ⇒ Document Also known as: one
Find the first Document
given the conditions.
146 147 148 |
# File 'lib/mongoid/findable.rb', line 146 def first with_default_scope.first end |