Skip to content

Commit

Permalink
Allow model constructor arguments to be passed to new model plugin hook
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Dec 11, 2013
1 parent c382c71 commit dc318da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function Model(database, collection, schema, options) {
});

for(var i = 0; i < database.plugins.length; i++) {
if(database.plugins[i].newModel) database.plugins[i].newModel.call(this);
if(database.plugins[i].newModel) database.plugins[i].newModel.call(this, database, collection, schema, options);
}
}

Expand Down

0 comments on commit dc318da

Please sign in to comment.