Skip to content

Commit

Permalink
Don't use mongo's native ID property (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Techwraith committed Jul 18, 2012
1 parent 99293a8 commit 95ee3e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/model/adapters/mongo.js
Expand Up @@ -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);
}

Expand Down

0 comments on commit 95ee3e1

Please sign in to comment.