Module: Stationed::Generators::Plugins::RackDeflater

Included in:
AppGenerator
Defined in:
lib/stationed/generators/plugins/rack_deflater.rb

Instance Method Summary collapse

Instance Method Details

#finish_templateObject



5
6
7
8
9
10
11
12
13
# File 'lib/stationed/generators/plugins/rack_deflater.rb', line 5

def finish_template
  environment nil, env: :production do
    "  # Enable deflate / gzip compression of controller-generated responses\n  config.middleware.use Rack::Deflater\n    RUBY\n  end\n  super\nend\n"