Fix the delegation for discover

This commit is contained in:
Raymond Feng 2013-05-21 12:00:16 -07:00
parent 26230be417
commit fcdd8c2bca
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ DataSource.prototype.discoverModels = function (options, cb) {
DataSource.prototype.discoverModelProperties = function (owner, table, cb) {
this.freeze();
if (this.adapter.discoverModelProperties) {
this.adapter.discoverModelProperties(options, cb);
this.adapter.discoverModelProperties(owner, table, cb);
} else if (cb) {
cb();
}