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\n Rails.application.configure do\n# Do not eader load code on boot.\nconfig.eager_load = false\n end\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 |