indeed, if we are going to remove everything in public/assets on assets:clean, just do that

This commit is contained in:
Xavier Noria 2011-07-17 00:44:00 +02:00
parent 53f6acd252
commit 0aec2e7191
1 changed files with 1 additions and 4 deletions

View File

@ -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