module Mongoid::Finders
Public Instance Methods
all(fields)
click to toggle source
# File lib/cucumber/pickle_mongodb/finders.rb, line 12 def all(fields) where(fields[:conditions]) #returns the first instance matching given criteria end
first(fields)
click to toggle source
# File lib/cucumber/pickle_mongodb/finders.rb, line 8 def first(fields) find_by(fields[:conditions]) #returns the first instance matching given criteria end