Fixed bug for CoffeeScript and MongoDB

Removed a bogus line that was resetting the configuration read from
"database.yml", the file that's used instead of "database.json" when
railway gets initialized using --coffee, as this was preventing Railway
to work with any database driver other than Memory.
This commit is contained in:
Sebastian del Valle 2012-12-04 22:15:26 -03:00
parent 0990135aee
commit 8d18418e84
2 changed files with 2 additions and 1 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ doc
coverage.html
coverage
v8.log
.DS_Store

View File

@ -41,7 +41,6 @@ module.exports = function init(root) {
console.log('Could not parse config/database.yml');
throw e;
}
config = {};
}
// when driver name started with point - look for driver in app root (relative path)
if (config.driver && config.driver.match(/^\./)) {