diff options
author | Xavier Noria <fxn@hashref.com> | 2011-07-17 00:44:00 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-07-17 00:44:00 +0200 |
commit | 0aec2e7191b8845fda9a2bbe3d76c6a9dc22401b (patch) | |
tree | b91180ad3b65a8f62632a82d335179179d4f4ff5 /actionpack | |
parent | 53f6acd25252d7c95ea8fd90ed6f48aa7ac3e04c (diff) | |
download | rails-0aec2e7191b8845fda9a2bbe3d76c6a9dc22401b.tar.gz rails-0aec2e7191b8845fda9a2bbe3d76c6a9dc22401b.tar.bz2 rails-0aec2e7191b8845fda9a2bbe3d76c6a9dc22401b.zip |
indeed, if we are going to remove everything in public/assets on assets:clean, just do that
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/sprockets/assets.rake | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake index 61e0189ad9..b2c282c158 100644 --- a/actionpack/lib/sprockets/assets.rake +++ b/actionpack/lib/sprockets/assets.rake @@ -17,9 +17,6 @@ namespace :assets do task :clean => :environment do assets = Rails.application.config.assets public_asset_path = Rails.public_path + assets.prefix - file_list = FileList.new("#{public_asset_path}/**/*") - file_list.each do |file| - rm_rf file - end + rm_rf public_asset_path, :secure => true end end |