Removed the automatic addition of ObjectID for object['_id'] missing
This commit is contained in:
parent
761b125687
commit
3a5e578528
|
@ -153,7 +153,6 @@ module XGen
|
||||||
end
|
end
|
||||||
|
|
||||||
def insert_into_db(collection, objects)
|
def insert_into_db(collection, objects)
|
||||||
objects.each { |o| o['_id'] ||= ObjectID.new }
|
|
||||||
# TODO synchronize
|
# TODO synchronize
|
||||||
objects.each { |o| send_to_db(InsertMessage.new(@name, collection, o)) }
|
objects.each { |o| send_to_db(InsertMessage.new(@name, collection, o)) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue