diff --git a/lib/Model.js b/lib/Model.js index 5916e9e..f52f2c3 100644 --- a/lib/Model.js +++ b/lib/Model.js @@ -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); } }