Permalink
Browse files

casing

  • Loading branch information...
1 parent 825680f commit d850866d7b077b997083cdf2a3049f95f6dc41b1 @aheckmann aheckmann committed May 11, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/mongoose/schema.js
  2. +1 −1 test/schema.test.js
@@ -40,13 +40,13 @@ function Schema (obj, options) {
if (!this.paths['_id'])
this.add({ _id: {type: ObjectId, auto: true} });
- if (!this.paths['id'] && !this.options.novirtualid) {
+ if (!this.paths['id'] && !this.options.noVirtualId) {
this.virtual('id').get(function () {
return this._id.toString();
});
}
- delete this.options.novirtualid;
+ delete this.options.noVirtualId;
};
/**
View
@@ -771,7 +771,7 @@ module.exports = {
},
'allow disabling the auto .id virtual': function () {
- var schema = new Schema({ name: String }, { novirtualid: true });
+ var schema = new Schema({ name: String }, { noVirtualId: true });
should.strictEqual(undefined, schema.virtuals.id);
}

0 comments on commit d850866

Please sign in to comment.