Class: ApiDoc::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ApiDoc::Generators::InstallGenerator
- Defined in:
- lib/generators/api_doc/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_api_doc_routes ⇒ Object
13 14 15 |
# File 'lib/generators/api_doc/install_generator.rb', line 13 def add_api_doc_routes route 'mount ApiDoc::Engine => "/api_docs"' end |
#copy_index ⇒ Object
17 18 19 |
# File 'lib/generators/api_doc/install_generator.rb', line 17 def copy_index copy_file File.join("templates", "index.html.erb"), "app/views/api_doc/documents/index.html.erb" end |
#copy_locale ⇒ Object
9 10 11 |
# File 'lib/generators/api_doc/install_generator.rb', line 9 def copy_locale copy_file File.join("templates", "en.yml"), "config/locales/api_doc.en.yml" end |