Class: Maquina::Generators::InstallTemplatesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/maquina/install_templates/install_templates_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_layoutObject



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_viewsObject



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