From fcdd8c2bcaf4390e3a694c5cc6e523fb809bef5c Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Tue, 21 May 2013 12:00:16 -0700 Subject: [PATCH] Fix the delegation for discover --- lib/datasource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datasource.js b/lib/datasource.js index 42e4660d..e88605c2 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -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(); }