Permalink
Browse files

added the ability to pass config through to adapters

  • Loading branch information...
1 parent effeb10 commit 7aa194a40bad0a7b0677d028b6c20e899b80a08d @nlf nlf committed Oct 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/index.js
View
@@ -751,9 +751,9 @@ model.ModelDefinitionBase = function (name) {
this.name = name;
- this.adapter = function (adapter) {
+ this.adapter = function (adapter, config) {
var Adapter = require('./adapters/' + adapters.getAdapterInfo(adapter).filePath).Adapter;
- model.adapters[name] = new Adapter();
+ model.adapters[name] = new Adapter(config);
};
this.property = function (name, datatype, o) {

0 comments on commit 7aa194a

Please sign in to comment.