Class: Underlay::EnforceSslGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Actions
Defined in:
lib/underlay/generators/enforce_ssl_generator.rb

Instance Method Summary collapse

Methods included from Actions

#action_mailer_asset_host, #action_mailer_host, #configure_application_file, #configure_environment, #replace_in_file

Instance Method Details

#enforce_sslObject



10
11
12
# File 'lib/underlay/generators/enforce_ssl_generator.rb', line 10

def enforce_ssl
  configure_environment 'production', 'config.force_ssl = true'
end