Fix missing settings
This commit is contained in:
parent
bf83a76eae
commit
473dd794ef
|
@ -116,13 +116,15 @@ for (var m in ModelBuilder) {
|
|||
DataSource.prototype.setup = function(name, settings) {
|
||||
var schema = this;
|
||||
var adapter;
|
||||
|
||||
console.log('name', name, 'settings', settings);
|
||||
|
||||
// support single settings object
|
||||
if(typeof name === 'object') {
|
||||
settings = name;
|
||||
if(typeof name === 'object' && name.initialize) {
|
||||
adapter = name;
|
||||
name = undefined;
|
||||
}
|
||||
if(settings) {
|
||||
if(settings && settings.initialize) {
|
||||
adapter = settings.connector || settings.adapter;
|
||||
}
|
||||
if(settings.initialize) {
|
||||
|
|
Loading…
Reference in New Issue