Class: Katapult::TemplatesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Katapult::TemplatesGenerator
- Defined in:
- lib/generators/katapult/templates/templates_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_controller_template ⇒ Object
17 18 19 |
# File 'lib/generators/katapult/templates/templates_generator.rb', line 17 def copy_controller_template copy_generator_templates 'web_ui', 'controller.rb' end |
#copy_view_templates ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/generators/katapult/templates/templates_generator.rb', line 7 def copy_view_templates copy_generator_templates 'views', %w[ _form.html.haml edit.html.haml index.html.haml new.html.haml show.html.haml ] end |