Skip to content

Commit

Permalink
Loaded adapters should be registered per-model
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Oct 30, 2012
1 parent daa5db5 commit fd8fd64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init/model.js
Expand Up @@ -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
Expand Down

0 comments on commit fd8fd64

Please sign in to comment.