lib/application.js
function parseDriverConfig() {
  var cfg, def, x, y, z,
      config = this.config.drivers,
      drivers = this.drivers;
  
  if (!config) config = this.config.drivers = {};
  
  if (Object.keys(config).length === 0) return;

  for (x in config) {
    cfg = config[x];
    if (x == 'default') { def = cfg; continue; }
    for (y in cfg) {
      if (typeof cfg[y] == 'object') {
        if (typeof drivers[x] == 'undefined') drivers[x] = {};
        drivers[x][y] = [x, cfg[y]];
      } else {
        drivers[x] = [x, cfg];
        break;
      }
    }
  }

}
function parseDriverConfig() {
  var cfg, def, x, y, z,
      config = this.config.drivers,
      drivers = this.drivers;
  
  if (!config) config = this.config.drivers = {};
  
  if (Object.keys(config).length === 0) return;

  for (x in config) {
    cfg = config[x];
    if (x == 'default') { def = cfg; continue; }
    for (y in cfg) {
      if (typeof cfg[y] == 'object') {
        if (typeof drivers[x] == 'undefined') drivers[x] = {};
        drivers[x][y] = [x, cfg[y]];
      } else {
        drivers[x] = [x, cfg];
        break;
      }
    }
  }

}
function parseDriverConfig ( ) { var cfg , def , x , y , z , config = this . config . drivers , drivers = this . drivers ; if ( ! config ) config = this . config . drivers = { } ; if ( Object . keys ( config ) . length === 0 ) return ; for ( x in config ) { cfg = config [ x ] ; if ( x == 'default' ) { def = cfg ; continue ; } for ( y in cfg ) { if ( typeof cfg [ y ] == 'object' ) { if ( typeof drivers [ x ] == 'undefined' ) drivers [ x ] = { } ; drivers [ x ] [ y ] = [ x , cfg [ y ] ] ; } else { drivers [ x ] = [ x , cfg ] ; break ; } } } }
Parses database drivers from config
Parses database drivers from config