Permalink
Browse files

don't cache generated file on debug mode.

  • Loading branch information...
kou committed Dec 22, 2010
1 parent 5af0cde commit 7cb9b6df1283a114767516cf56a82b08fe4cc031
Showing with 1 addition and 0 deletions.
  1. +1 −0 app.rb
View
1 app.rb
@@ -232,6 +232,7 @@ def cache_file(*path)
end
def cache_public_file(data, *path)
+ return if debug?
return if path.any? {|component| danger_path_component?(component)}
base_dir = File.expand_path(File.dirname(__FILE__))
path = File.join(base_dir, "public", *path)

0 comments on commit 7cb9b6d

Please sign in to comment.