Module: MongoPersistCollection

Included in:
Mongo::Collection
Defined in:
lib/mongo_persist/mongo_ext.rb

Instance Method Summary collapse

Instance Method Details

#find_objects(*args) ⇒ Object



18
19
20
# File 'lib/mongo_persist/mongo_ext.rb', line 18

def find_objects(*args)
  ObjCursor.new(:cursor => find(*args))
end

#find_one_object(*args) ⇒ Object



21
22
23
# File 'lib/mongo_persist/mongo_ext.rb', line 21

def find_one_object(*args)
  find_one(*args).to_mongo_object
end