Fix the jsdoc for loopback.getModel()

This commit is contained in:
Raymond Feng 2014-01-17 10:23:59 -08:00
parent c70ba01f6b
commit 32bdce53ee
1 changed files with 2 additions and 1 deletions

View File

@ -187,8 +187,9 @@ loopback.memory = function (name) {
}
/**
* Loop up a model class by name
* Look up a model class by name from all models created by loopback.createModel()
* @param {String} modelName The model name
* @return {Model} The model class
*/
loopback.getModel = function(modelName) {
return loopback.Model.modelBuilder.models[modelName];