Class: PartialMenu::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
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

Instance Method Details

#copy_templatesObject

rubocop:enable Metrics/LineLength



12
13
14
15
# File 'lib/generators/views/views_generator.rb', line 12

def copy_templates
  @dir = options['partial_dir']
  directory '.', "app/views/#{@dir}_menu"
end