Permalink
Browse files

sprockets gzips assets now

  • Loading branch information...
1 parent 8aabefb commit 2d4115528fc8e784ae40946a3ee402b76a12160b @fxn fxn committed Jun 7, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 railties/lib/rails/tasks/assets.rake
View
5 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

0 comments on commit 2d41155

Please sign in to comment.