Add settings property back to the model class
This commit is contained in:
parent
24d87976e8
commit
409d256e47
|
@ -149,6 +149,8 @@ ModelBuilder.prototype.define = function defineClass(className, properties, sett
|
|||
|
||||
// expose properties on the ModelClass
|
||||
ModelClass.definition = modelDefinition;
|
||||
// keep a pointer to settings as models can use it for configuration
|
||||
ModelClass.settings = modelDefinition.settings;
|
||||
|
||||
var idInjection = settings.idInjection;
|
||||
if(idInjection !== false) {
|
||||
|
|
Loading…
Reference in New Issue