jugglingdb/mongodb-adapter — pull request #20 by robert52 (2013-08-31 23:22:03+00:00)
Title: create object if wrong type of id is passed when using upsert

In case there is no id or wrong type of id (instead of `ObjectID`) is passed to `.upsert()`, we get an error in the console because the create method is not called with a `model` as parameter.