class PartialMenu::ViewsGenerator

Generates views on demand and puts them on app/views/partial_menu

Public Instance Methods

copy_templates() click to toggle source

rubocop:enable Metrics/LineLength

# File lib/generators/views/views_generator.rb, line 12
def copy_templates
  @dir = options['partial_dir']
  directory '.', "app/views/#{@dir}_menu"
end