Browse files

README tweak

  • Loading branch information...
1 parent bb0f3bf commit 49e49267ac9ccf8dfb24d1473522691de55cc564 @PlasticLizard PlasticLizard committed Jul 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.rdoc
2 README.rdoc
@@ -129,7 +129,7 @@ em-mongo methods no longer directly accept callbacks and instead return EM::Mong
to this
- my_collection.find().callback { |doc| p doc }
+ my_collection.first().callback { |doc| p doc }
EM::Mongo::Collection#find now returns a cursor, not an array, to maintain compatibility with the mongo-ruby-driver. This provides a great deal more flexibility, but requires you to select a specific cursor method to actually fetch data from the server, such as #to_a or #next

0 comments on commit 49e4926

Please sign in to comment.