Class: Suspenders::Production::CompressionGenerator

Inherits:
Generators::Base
  • Object
show all
Defined in:
lib/suspenders/generators/production/compression_generator.rb

Instance Method Summary collapse

Methods inherited from Generators::Base

default_source_root, inherited

Methods included from Actions

#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file

Instance Method Details

#add_rack_deflaterObject


6
7
8
9
10
11
# File 'lib/suspenders/generators/production/compression_generator.rb', line 6

def add_rack_deflater
  configure_environment(
    :production,
    %(config.middleware.use Rack::Deflater)
  )
end