diff options
author | Ilya Grigorik <ilya@igvita.com> | 2011-08-04 19:17:03 -0400 |
---|---|---|
committer | Ilya Grigorik <ilya@igvita.com> | 2011-08-04 23:53:32 -0400 |
commit | e44efac0865a66b0546e32b4c6f23605a98a5845 (patch) | |
tree | afbbe05feb9c06e45406425189d611d87fe578b4 /actionpack | |
parent | 04f88d163094a8b5fa56ba8178cec56aa3ea6b79 (diff) | |
download | rails-e44efac0865a66b0546e32b4c6f23605a98a5845.tar.gz rails-e44efac0865a66b0546e32b4c6f23605a98a5845.tar.bz2 rails-e44efac0865a66b0546e32b4c6f23605a98a5845.zip |
Clear out tmp/cache when assets:clean is invoked.
Otherwise, if bad data is cached in tmp/clear then the next invocation
of assets:precompile (or a regular incoming request) will pickup files from
tmp without regenerating them from source.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/sprockets/assets.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake index 50278cffcd..0349b2865e 100644 --- a/actionpack/lib/sprockets/assets.rake +++ b/actionpack/lib/sprockets/assets.rake @@ -16,7 +16,7 @@ namespace :assets do end desc "Remove compiled assets" - task :clean => :environment do + task :clean => [:environment, 'tmp:cache:clear'] do assets = Rails.application.config.assets public_asset_path = Rails.public_path + assets.prefix rm_rf public_asset_path, :secure => true |