Skip to content

Commit

Permalink
Use app settings for assets paths in caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoliy Chakkaev committed Jun 30, 2011
1 parent e455b99 commit 81e63b6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/onrailway.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,11 @@ exports.init = function (app) {
loadObservers();

if (app.enabled('merge javascripts')) {
// TODO: use configured js path
ensureDirClean(app.root + '/public/javascripts/cache');
ensureDirClean(app.root + '/public' + app.set('jsDirectory') + 'cache');
}

if (app.enabled('merge stylesheets')) {
// TODO: use configured css path
ensureDirClean(app.root + '/public/stylesheets/cache');
ensureDirClean(app.root + '/public' + app.set('cssDirectory') + 'cache');
}

});
Expand Down

0 comments on commit 81e63b6

Please sign in to comment.