aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets/assets.rake
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-07-17 00:44:00 +0200
committerXavier Noria <fxn@hashref.com>2011-07-17 00:44:00 +0200
commit0aec2e7191b8845fda9a2bbe3d76c6a9dc22401b (patch)
treeb91180ad3b65a8f62632a82d335179179d4f4ff5 /actionpack/lib/sprockets/assets.rake
parent53f6acd25252d7c95ea8fd90ed6f48aa7ac3e04c (diff)
downloadrails-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/lib/sprockets/assets.rake')
-rw-r--r--actionpack/lib/sprockets/assets.rake5
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