From 95ee3e18a0b5249efdd8eaf7436c2a99521744a7 Mon Sep 17 00:00:00 2001 From: Techwraith Date: Tue, 17 Jul 2012 19:38:05 -0700 Subject: [PATCH] Don't use mongo's native ID property (2) --- lib/model/adapters/mongo.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/model/adapters/mongo.js b/lib/model/adapters/mongo.js index 14c1ada7..5309da6e 100644 --- a/lib/model/adapters/mongo.js +++ b/lib/model/adapters/mongo.js @@ -70,6 +70,8 @@ var Mongo = function (config) { // if there's a doc, create a model out of it if (doc) { + // TODO: figure out why this uses native _ids + delete doc._id; instance = geddy.model[self.model].create(doc); }