Class: Breadcrumble::Generators::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/breadcrumble/views_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_viewsObject


7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/breadcrumble/views_generator.rb', line 7

def generate_views
  names = [
    '_breadcrumb.html.erb',
    '_breadcrumb_trails.html.erb',
    '_breadcrumb_trail.html.erb'
  ]
  names.each do |name|
    copy_file "#{name}", "app/views/breadcrumble/#{name}"
  end
end