提交 d26cf146 编写于 作者: J James A. Rosen

rake assets:clean also removes directories

See https://github.com/rails/rails/pull/1776#issuecomment-1402894,
2df2bfdb, and
7440a254.
上级 e1b32e70
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册