lib/application: Remove forgotten `loopback` ref
Use `registry.Model` instead of `loopback.Model`.
This commit is contained in:
parent
8826b6396a
commit
843e09342c
|
@ -141,7 +141,7 @@ app.model = function (Model, config) {
|
|||
configureModel(Model, config, this);
|
||||
isPublic = config.public !== false;
|
||||
} else {
|
||||
assert(Model.prototype instanceof loopback.Model,
|
||||
assert(Model.prototype instanceof registry.Model,
|
||||
'Model must be a descendant of loopback.Model');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue