lib/adapter.js
function(cb) {
    this._loadCollections();
    
    // Start Waterline
    var self = this;
    this._waterline.initialize(self.config, function(err, waterline) {
      if(err) throw err;
      
      hb.addModel('Account', waterline.collections['accounts-'+hb.env]);
      hb.addModel('Keyword', waterline.collections['keywords-'+hb.env]);
      
      cb();
    });
  }
function(cb) {
    this._loadCollections();
    
    // Start Waterline
    var self = this;
    this._waterline.initialize(self.config, function(err, waterline) {
      if(err) throw err;
      
      hb.addModel('Account', waterline.collections['accounts-'+hb.env]);
      hb.addModel('Keyword', waterline.collections['keywords-'+hb.env]);
      
      cb();
    });
  }
function ( cb ) { this . _loadCollections ( ) ; // Start Waterline var self = this ; this . _waterline . initialize ( self . config , function ( err , waterline ) { if ( err ) throw err ; hb . addModel ( 'Account' , waterline . collections [ 'accounts-' + hb . env ] ) ; hb . addModel ( 'Keyword' , waterline . collections [ 'keywords-' + hb . env ] ) ; cb ( ) ; } ) ; }
Initialize the connection
Initialize the connection