From 8d18418e84682140b307a6f892b2caafdc362fa1 Mon Sep 17 00:00:00 2001 From: Sebastian del Valle Date: Tue, 4 Dec 2012 22:15:26 -0300 Subject: [PATCH] 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. --- .gitignore | 2 ++ lib/railway.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index abcfedad..64a8281a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ doc coverage.html coverage v8.log + +.DS_Store diff --git a/lib/railway.js b/lib/railway.js index 44d5e7a4..fa70431c 100644 --- a/lib/railway.js +++ b/lib/railway.js @@ -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(/^\./)) {