Sha256: d820fcced1e4778b18c6aad091278a30ceebe3856b9225b4eaa48a929595a21b
Contents?: true
Size: 635 Bytes
Versions: 6
Compression:
Stored size: 635 Bytes
Contents
module Stationed module Generators module Plugins module RackDeflater def self.prepended(base) base.class_option :rack_deflator, type: :boolean, default: true, desc: 'Include rack-deflator in production mode' end def finish_template return super unless options[:rack_deflator] environment nil, env: :production do <<-RUBY # Enable deflate / gzip compression of controller-generated responses config.middleware.use Rack::Deflater RUBY end super end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems