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 =
"# frozen_string_literal: true\n\nRails.application.configure do\n # Do not eader load code on boot.\n config.eager_load = false\nend\n"
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 |