diff --git a/lib/index.js b/lib/index.js index 5d0ed90c..571c4d30 100644 --- a/lib/index.js +++ b/lib/index.js @@ -636,6 +636,10 @@ utils.mixin(model, new (function () { // Preserve any inherited shit from the definition proto utils.enhance(ModelCtor.prototype, origProto); + // Set the model adapter to the defaultadapter in case there is none + if (!ModelCtor.adapter) + ModelCtor.adapter = this.defaultAdapter + model[name] = ModelCtor; return ModelCtor;