Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,13 @@ app.boot = function(options) {
forEachKeyedObject(dataSourceConfig, function(key, obj) {
app.dataSource(key, obj);
});
requireDir(path.join(appRootDir, 'data-sources'));

// instantiate models
forEachKeyedObject(modelConfig, function(key, obj) {
app.model(key, obj);
});
requireDir(path.join(appRootDir, 'models'));

// try to attach models to dataSources by type
try {
Expand All @@ -497,7 +499,6 @@ app.boot = function(options) {
}

// require directories
var requiredModels = requireDir(path.join(appRootDir, 'models'));
var requiredBootScripts = requireDir(path.join(appRootDir, 'boot'));
}

Expand Down