Sha256: c68f893acf4fe53fa4230e79ffa0828dec0e4ce18242556c3b65c26c54de9343

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

module Stationed
  module Generators
    module Plugins
      module RackDeflater
        def finish_template
          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

1 entries across 1 versions & 1 rubygems

Version Path
stationed-0.0.1 lib/stationed/generators/plugins/rack_deflater.rb