aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-09-13 22:05:46 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-09-13 22:06:29 -0500
commit9c7e8850073fdefa17367b8fec256257c31559bc (patch)
tree675c1e476b10b0edda5ba5664970e4e7a2067ada /actionpack
parent3b8a7cf2a7b2ffce671ca7f655de736c1054edbc (diff)
downloadrails-9c7e8850073fdefa17367b8fec256257c31559bc.tar.gz
rails-9c7e8850073fdefa17367b8fec256257c31559bc.tar.bz2
rails-9c7e8850073fdefa17367b8fec256257c31559bc.zip
Clear cache before of each precompile to avoid inconsistencies. Fixes #3014
Diffstat (limited to 'actionpack')
-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 ee8ca1b3dd..b7e8f39b43 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