From 5586d53c6add10387faf709e7e3565e54358d508 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Tue, 20 Oct 2009 11:36:51 -0400 Subject: [PATCH] minor: Collection#remove should access db directly. --- lib/mongo/collection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/collection.rb b/lib/mongo/collection.rb index 6b5492f..3d073dc 100644 --- a/lib/mongo/collection.rb +++ b/lib/mongo/collection.rb @@ -229,7 +229,7 @@ module Mongo BSON.serialize_cstr(message, "#{@db.name}.#{@name}") message.put_int(0) message.put_array(BSON.new.serialize(selector, false).to_a) - db.send_message_with_operation(OP_DELETE, message) + @db.send_message_with_operation(OP_DELETE, message) end # Remove all records.