diff options
author | José Valim <jose.valim@gmail.com> | 2011-10-04 22:03:59 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-10-04 22:04:56 +0200 |
commit | dc85fc546fb9c40a610d3f3d029ccb3692aefc02 (patch) | |
tree | 07d3a1f3313a1bbb9a487970d365495ec9d93a95 | |
parent | 9c69ef31676b8d0c7a54313b4c53aa7279b6f516 (diff) | |
download | rails-dc85fc546fb9c40a610d3f3d029ccb3692aefc02.tar.gz rails-dc85fc546fb9c40a610d3f3d029ccb3692aefc02.tar.bz2 rails-dc85fc546fb9c40a610d3f3d029ccb3692aefc02.zip |
Fix failing test added in previous commit.
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r-- | actionpack/lib/sprockets/assets.rake | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake index 000e7175c0..7ab079c626 100644 --- a/actionpack/lib/sprockets/assets.rake +++ b/actionpack/lib/sprockets/assets.rake @@ -58,10 +58,18 @@ namespace :assets do end desc "Remove compiled assets" - task :clean => ["assets:environment", "tmp:cache:clear"] do - config = Rails.application.config - public_asset_path = File.join(Rails.public_path, config.assets.prefix) - rm_rf public_asset_path, :secure => true + task :clean do + ENV["RAILS_GROUPS"] ||= "assets" + ENV["RAILS_ENV"] ||= "production" + ruby_rake_task "assets:clean:all" + end + + namespace :clean do + task :all => ["assets:environment", "tmp:cache:clear"] do + config = Rails.application.config + public_asset_path = File.join(Rails.public_path, config.assets.prefix) + rm_rf public_asset_path, :secure => true + end end task :environment do |