Permalink
Browse files

rake assets:clean also removes directories

  • Loading branch information...
1 parent e1b32e7 commit d26cf14605c02495263b3f5edd390569bfead11c James A. Rosen committed Jun 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/tasks/assets.rake
@@ -19,7 +19,7 @@ namespace :assets do
public_asset_path = Rails.public_path + assets.prefix
file_list = FileList.new("#{public_asset_path}/**/*")
file_list.each do |file|
- rm file
+ rm file, :force => true
rm "#{file}.gz", :force => true
end
end

0 comments on commit d26cf14

Please sign in to comment.