Class: Activoate::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Activoate::InstallGenerator
- Defined in:
- lib/generators/activoate/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_layout ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/generators/activoate/install/install_generator.rb', line 13 def copy_layout return if .no_layout admin_layout_name = .layout_type == 'sign' ? "layout_sign.html.erb" : "layout_admin.html.erb" case .engine when 'erb' template admin_layout_name, "app/views/layouts/#{layout_name.underscore}.html.erb" when 'haml' generate_haml_layout(admin_layout_name) end end |