Permalink
Browse files

Loaded adapters should be registered per-model

  • Loading branch information...
1 parent daa5db5 commit fd8fd64ae472d2dfb9020ae36d2e0852a5bf508a mde committed Oct 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/init/model.js
View
@@ -111,7 +111,7 @@ module.exports = new (function () {
if (typeof adapter.connect == 'function') {
adapter.connect();
}
- model.loadedAdapters[adapterName] = adapter;
+ model.loadedAdapters[name] = adapter;
if (typeof adapter.createTable == 'function') {
// FIXME -- fire-and-forget bad, need to make this
// recursive

0 comments on commit fd8fd64

Please sign in to comment.