Comparing version 1.1.22 to 1.1.23
1.1.23 / 2011-04-01 | ||
=================== | ||
* Added Model#model | ||
1.1.22 / 2011-03-31 | ||
@@ -3,0 +8,0 @@ =================== |
@@ -284,3 +284,3 @@ | ||
exports.version = '1.1.22'; | ||
exports.version = '1.1.23'; | ||
@@ -287,0 +287,0 @@ /** |
@@ -250,2 +250,12 @@ | ||
/** | ||
* Shortcut to access another model. | ||
* | ||
* @param {String} model name | ||
*/ | ||
Model.prototype.model = function (name) { | ||
return this.db.model(name); | ||
}; | ||
/** | ||
* Access the options defined in the schema | ||
@@ -252,0 +262,0 @@ * |
@@ -36,4 +36,4 @@ | ||
ObjectId.prototype.checkRequired = function(value){ | ||
return value && value instanceof oid; | ||
ObjectId.prototype.checkRequired = function (value) { | ||
return !!value && value instanceof oid; | ||
}; | ||
@@ -40,0 +40,0 @@ |
{ | ||
"name": "mongoose" | ||
, "description": "Mongoose MongoDB ORM" | ||
, "version": "1.1.22" | ||
, "version": "1.1.23" | ||
, "author": "Guillermo Rauch <guillermo@learnboost.com>" | ||
@@ -6,0 +6,0 @@ , "keywords": ["mongodb", "mongoose", "orm", "data", "datastore", "nosql"] |
@@ -337,2 +337,6 @@ | ||
}); | ||
Loki.path('owner').doValidate(undefined, function(err){ | ||
err.should.be.an.instanceof(ValidatorError); | ||
}); | ||
}, | ||
@@ -339,0 +343,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26235
1473421
196