Class: Maquina::Generators::InstallTemplatesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Maquina::Generators::InstallTemplatesGenerator
- Defined in:
- lib/generators/maquina/install_templates/install_templates_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_layout ⇒ Object
8 9 10 11 12 |
# File 'lib/generators/maquina/install_templates/install_templates_generator.rb', line 8 def copy_layout empty_directory "app/views/layouts/maquina" directory File.join(engine_views_path, "layouts", "maquina"), File.join(app_views_path, "layouts", "maquina") end |
#copy_views ⇒ Object
14 15 16 17 18 |
# File 'lib/generators/maquina/install_templates/install_templates_generator.rb', line 14 def copy_views empty_directory "app/views/maquina" directory File.join(engine_views_path, "maquina"), File.join(app_views_path, "maquina") end |