Removed automatic _id creation.

This commit is contained in:
Jim Menard 2008-12-08 13:56:48 -05:00
parent 7669900126
commit c3b1225605

View File

@ -13,7 +13,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
require 'socket'
require 'mongo/objectid'
require 'mongo/collection'
require 'mongo/message'
require 'mongo/query'
@ -163,7 +162,6 @@ module XGen
end
def insert_into_db(collection_name, objects)
objects.each { |o| o['_id'] ||= ObjectID.new }
# TODO synchronize
objects.each { |o| send_to_db(InsertMessage.new(@name, collection_name, o)) }
end