Class: SwaggerDocsGenerator::EnvironmentGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SwaggerDocsGenerator::EnvironmentGenerator
- Defined in:
- lib/generators/swagger_docs_generator/environment_generator.rb
Overview
# Generator Rails
Create a initializer for rails application
Constant Summary collapse
- ENVIRONMENT =
<<-INIT # frozen_string_literal: true Rails.application.configure do # Do not eader load code on boot. config.eager_load = false end INIT
Instance Method Summary collapse
-
#copy_environment ⇒ Object
Create a new environment.
Instance Method Details
#copy_environment ⇒ Object
Create a new environment
19 20 21 |
# File 'lib/generators/swagger_docs_generator/environment_generator.rb', line 19 def copy_environment create_file 'config/environments/doc.rb', ENVIRONMENT end |