Removed the automatic addition of ObjectID for object['_id'] missing

This commit is contained in:
Adrian Madrid 2008-12-06 14:29:26 -07:00
parent 761b125687
commit 3a5e578528

View File

@ -153,7 +153,6 @@ module XGen
end
def insert_into_db(collection, objects)
objects.each { |o| o['_id'] ||= ObjectID.new }
# TODO synchronize
objects.each { |o| send_to_db(InsertMessage.new(@name, collection, o)) }
end