diff options
author | James A. Rosen <james@zendesk.com> | 2011-06-19 18:03:55 -0700 |
---|---|---|
committer | James A. Rosen <james@zendesk.com> | 2011-06-19 18:40:17 -0700 |
commit | 7440a254c4e724a5bbf6a0f4c8edb6d8d0432433 (patch) | |
tree | ffc7d7d5f30c55f4efde6143bc9526ff1ab91d5a /railties/lib/rails/tasks/assets.rake | |
parent | 93b7da478b81c93afd9410a506e5d37ad607b900 (diff) | |
download | rails-7440a254c4e724a5bbf6a0f4c8edb6d8d0432433.tar.gz rails-7440a254c4e724a5bbf6a0f4c8edb6d8d0432433.tar.bz2 rails-7440a254c4e724a5bbf6a0f4c8edb6d8d0432433.zip |
assets:clean task now cleans up images
Diffstat (limited to 'railties/lib/rails/tasks/assets.rake')
-rw-r--r-- | railties/lib/rails/tasks/assets.rake | 2 |
1 files changed, 1 insertions, 1 deletions
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 |