Namespace adapters

This commit is contained in:
Anatoliy Chakkaev 2012-11-14 11:29:29 +07:00
parent fd9d059846
commit b3ce33805c
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ function Schema(name, settings) {
adapter = require('./adapters/' + name);
} else {
try {
adapter = require(name);
adapter = require('jugglingdb-' + name);
} catch (e) {
throw new Error('Adapter ' + name + ' is not defined, try\n npm install ' + name);
}