Class: Suspenders::Generators::Environments::ProductionGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Suspenders::Generators::Environments::ProductionGenerator
- Defined in:
- lib/generators/suspenders/environments/production_generator.rb
Instance Method Summary collapse
Instance Method Details
#require_master_key ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/generators/suspenders/environments/production_generator.rb', line 11 def require_master_key if production_config.match?(/^\s*#\s*config\.require_master_key\s*=\s*true/) uncomment_lines "config/environments/production.rb", /config\.require_master_key\s*=\s*true/ else environment %(config.require_master_key = true), env: "production" end end |