minor: Collection#remove should access db directly.

This commit is contained in:
Kyle Banker 2009-10-20 11:36:51 -04:00
parent e40d9cec3c
commit 5586d53c6a
1 changed files with 1 additions and 1 deletions

View File

@ -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.