From 2c1249f3815cca694cbaaa589c3d9f0b47cd8279 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 23 Aug 2016 12:04:53 +0800 Subject: [PATCH] Remove monkey patch. --- lib/tasks/assets.rake | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 12c8d187899..53d3ea80cda 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -30,16 +30,7 @@ task 'assets:precompile:before' do if $node_uglify Rails.configuration.assets.js_compressor = nil - - module ::Sprockets - # TODO: https://github.com/rails/sprockets-rails/pull/342 - # Rails.configuration.assets.gzip = false - class Base - def skip_gzip? - true - end - end - end + Rails.configuration.assets.gzip = false end end