Skip to content
This repository
Browse code

added the ability to pass config through to adapters

  • Loading branch information...
commit 7aa194a40bad0a7b0677d028b6c20e899b80a08d 1 parent effeb10
Nathan LaFreniere authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/index.js
4  lib/index.js
@@ -751,9 +751,9 @@ model.ModelDefinitionBase = function (name) {
751 751
 
752 752
   this.name = name;
753 753
 
754  
-  this.adapter = function (adapter) {
  754
+  this.adapter = function (adapter, config) {
755 755
       var Adapter = require('./adapters/' + adapters.getAdapterInfo(adapter).filePath).Adapter;
756  
-      model.adapters[name] = new Adapter();
  756
+      model.adapters[name] = new Adapter(config);
757 757
   };
758 758
 
759 759
   this.property = function (name, datatype, o) {

0 notes on commit 7aa194a

Please sign in to comment.
Something went wrong with that request. Please try again.