diff options
author | Xavier Noria <fxn@hashref.com> | 2011-06-07 21:58:40 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-06-07 21:58:40 +0200 |
commit | 2d4115528fc8e784ae40946a3ee402b76a12160b (patch) | |
tree | 9266a5d67b1914eaa97fc91dfe41314bf85944fc /railties/lib/rails/tasks | |
parent | 8aabefb0b757f9ee1648f5a9399b4d0b81bc16c0 (diff) | |
download | rails-2d4115528fc8e784ae40946a3ee402b76a12160b.tar.gz rails-2d4115528fc8e784ae40946a3ee402b76a12160b.tar.bz2 rails-2d4115528fc8e784ae40946a3ee402b76a12160b.zip |
sprockets gzips assets now
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 |