aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-09-14 05:26:53 -0700
committerJosé Valim <jose.valim@gmail.com>2011-09-14 05:26:53 -0700
commit63f6fad6442733a471f919afffc73eb906fa3e2a (patch)
tree51f324a63518be5b76438fa66252cf3b98c52617 /actionpack/lib/sprockets
parent425362da31db52dfc50d4e25d6ecf2fea1353a4e (diff)
parent9c7e8850073fdefa17367b8fec256257c31559bc (diff)
downloadrails-63f6fad6442733a471f919afffc73eb906fa3e2a.tar.gz
rails-63f6fad6442733a471f919afffc73eb906fa3e2a.tar.bz2
rails-63f6fad6442733a471f919afffc73eb906fa3e2a.zip
Merge pull request #3015 from guilleiguaran/clear-tmp-cache-on-precompile
Clear cache before of each precompile to avoid inconsistencies. Fixes #3014
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r--actionpack/lib/sprockets/assets.rake1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake
index 0531b1509b..9b2f3a3f94 100644
--- a/actionpack/lib/sprockets/assets.rake
+++ b/actionpack/lib/sprockets/assets.rake
@@ -9,6 +9,7 @@ namespace :assets do
Kernel.exec $0, *ARGV
else
Rake::Task["environment"].invoke
+ Rake::Task["tmp:cache:clear"].invoke
# Ensure that action view is loaded and the appropriate sprockets hooks get executed
ActionView::Base