Class: OpenapiRest::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- OpenapiRest::Generators::InstallGenerator
- Defined in:
- lib/generators/openapi_rest/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
5 6 7 8 |
# File 'lib/generators/openapi_rest/install_generator.rb', line 5 def copy_initializer copy_file 'openapi_doc.rb', 'config/initializers/openapi_doc.rb' copy_file '../templates/api_docs.yml', 'config/api_docs.yml' end |