Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down