LearnBoost/mongoose — pull request #778 by chrisleishman (2012-03-17 03:54:28+00:00)
Title: Numbers are not comparable to pimitives

Confusingly, numbers returned from Mongoose backed entities changed type and are no longer comparable to primitive numbers.

This pull request removes the 'valueOf' calls, that shouldn't be necessary, and demonstrates the issue.

E.g.

```
model.test.js mongoose.model returns the model at creation: AssertionError: expected 1234 to equal 1234
at Object.equal (/Users/cleishma/work/mongoose/node_modules/should/lib/should.js:306:10)
at /Users/cleishma/work/mongoose/test/model.test.js:149:22
```