From 008a0ecdb13642b6761b5d8b3bb6ce4c4eb0899a Mon Sep 17 00:00:00 2001 From: Vishnu Atrai Date: Fri, 27 May 2011 20:12:11 +0530 Subject: rename task and Rake::FileList used --- railties/lib/rails/tasks/assets.rake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties/lib/rails') 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 -- cgit v1.2.3