Error when start project on geddy 0.6.2 / Windows #256

Merged
merged 1 commit into from Nov 7, 2012
View
2 lib/init/build.js
@@ -8,7 +8,7 @@ exports.init = function (app, callback) {
, content
, built;
for (var i in modelDir) {
- file = modelDir[i].replace('app/models', '').replace('/', '');
+ file = modelDir[i].replace('app/models', '').replace('app\\models', '').replace('/', '').replace('\\', '');
if (file) {
content = fs.readFileSync(modelDir[i], 'utf8');
files.push("(function(){\n" + content + "}());");