Class: PartialMenu::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PartialMenu::ViewsGenerator
- Defined in:
- lib/generators/views/views_generator.rb
Overview
Generates views on demand and puts them on app/views/partial_menu
Instance Method Summary collapse
-
#copy_templates ⇒ Object
rubocop:enable Metrics/LineLength.
Instance Method Details
#copy_templates ⇒ Object
rubocop:enable Metrics/LineLength
12 13 14 15 |
# File 'lib/generators/views/views_generator.rb', line 12 def copy_templates @dir = ['partial_dir'] directory '.', "app/views/#{@dir}_menu" end |