diff options
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r-- | railties/lib/rails/tasks/assets.rake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/assets.rake b/railties/lib/rails/tasks/assets.rake index 5f87edc9e2..4678ea460e 100644 --- a/railties/lib/rails/tasks/assets.rake +++ b/railties/lib/rails/tasks/assets.rake @@ -13,6 +13,9 @@ namespace :assets 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.each{ |file| rm file } + file_list.each do |file| + rm file + rm "#{file}.gz", :force => true + end end end |