Permalink
Browse files

Merge pull request #1776 from jamesarosen/clean_images

assets:clean task now cleans up images
  • Loading branch information...
2 parents 4131fd7 + 7440a25 commit 2df2bfdb4b1165dce4b5bc3fe046147d793fead4 @josh josh committed Jun 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 2df2bfd

Please sign in to comment.