From 7440a254c4e724a5bbf6a0f4c8edb6d8d0432433 Mon Sep 17 00:00:00 2001 From: "James A. Rosen" Date: Sun, 19 Jun 2011 18:03:55 -0700 Subject: assets:clean task now cleans up images --- railties/lib/rails/tasks/assets.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/lib/rails/tasks/assets.rake b/railties/lib/rails/tasks/assets.rake index 4678ea460e..b872a54d08 100644 --- a/railties/lib/rails/tasks/assets.rake +++ b/railties/lib/rails/tasks/assets.rake @@ -12,7 +12,7 @@ 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}/*.js", "#{public_asset_path}/*.css") + file_list = FileList.new("#{public_asset_path}/**/*") file_list.each do |file| rm file rm "#{file}.gz", :force => true -- cgit v1.2.3