From ccd0b511c933d3e2c7f3e345622ad2cc17728de5 Mon Sep 17 00:00:00 2001 From: Gaurish Sharma Date: Wed, 25 Apr 2012 01:27:21 +0530 Subject: [PATCH] Added notice on how to enable gzip compression in rails app using Rack::Deflater. it is disabled & commented out by default. --- railties/lib/rails/generators/rails/app/templates/config.ru | 2 ++ 1 file changed, 2 insertions(+) diff --git a/railties/lib/rails/generators/rails/app/templates/config.ru b/railties/lib/rails/generators/rails/app/templates/config.ru index fcfbc6b07a..090d88e9ad 100644 --- a/railties/lib/rails/generators/rails/app/templates/config.ru +++ b/railties/lib/rails/generators/rails/app/templates/config.ru @@ -1,4 +1,6 @@ # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) +# if you want to enable Enable gzip compression, use this line +# use Rack::Deflater run <%= app_const %>