minor: corrected options for Collection#remove

This commit is contained in:
Kyle Banker 2009-10-19 17:48:20 -04:00
parent 72e89ce6f2
commit 2d7bae4e0a
1 changed files with 2 additions and 2 deletions

View File

@ -218,12 +218,12 @@ module Mongo
# def remove(selector={})
# @db.remove_from_db(@name, selector)
# end
def remove(selector={}, check_keys=false)
def remove(selector={})
message = ByteBuffer.new
message.put_int(0)
BSON.serialize_cstr(message, "#{@db.name}.#{@name}")
message.put_int(0)
message.put_array(BSON.new.serialize(selector, check_keys).to_a)
message.put_array(BSON.new.serialize(selector, false).to_a)
db.send_message_with_operation(OP_DELETE, message)
end