diff options
-rw-r--r-- | railties/lib/rails/tasks/assets.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/tasks/assets.rake b/railties/lib/rails/tasks/assets.rake index 1168409dcb..263a695214 100644 --- a/railties/lib/rails/tasks/assets.rake +++ b/railties/lib/rails/tasks/assets.rake @@ -11,10 +11,10 @@ namespace :assets do end desc "Remove compiled assets" - task :cleanup => :environment do + task :clean => :environment do assets = Rails.application.config.assets public_asset_path = Rails.public_path + assets.prefix - FileUtils.rm_r Dir.glob("#{public_asset_path}/*.js") - FileUtils.rm_r Dir.glob("#{public_asset_path}/*.css") + file_list = FileList.new("#{public_asset_path}/*.js", "#{public_asset_path}/*.css") + file_list.each{ |list| FileUtils.rm list } end end |