From 0aec2e7191b8845fda9a2bbe3d76c6a9dc22401b Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 17 Jul 2011 00:44:00 +0200 Subject: indeed, if we are going to remove everything in public/assets on assets:clean, just do that --- actionpack/lib/sprockets/assets.rake | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'actionpack/lib/sprockets/assets.rake') 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 -- cgit v1.2.3