Skip to content

Commit

Permalink
Merge pull request #256 from naimax/master
Browse files Browse the repository at this point in the history
Error when start project on geddy 0.6.2 / Windows
  • Loading branch information
mde committed Nov 7, 2012
2 parents 26c39e6 + 9082ed1 commit 575f63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init/build.js
Expand Up @@ -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 + "}());");
Expand Down

0 comments on commit 575f63d

Please sign in to comment.