Class: Diesel::Generators::ViewsBase

Inherits:
Base
  • Object
show all
Defined in:
lib/diesel/generators/views_base.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

engine, engine_name, engine_root, source_root, template_root

Class Method Details

.inherited(generator) ⇒ Object



12
13
14
15
16
17
# File 'lib/diesel/generators/views_base.rb', line 12

def self.inherited(generator)
  super
  generator.desc(<<-DESC)
    Copy view files for the engine into your application.
  DESC
end

Instance Method Details

#generate_viewsObject



6
7
8
9
10
# File 'lib/diesel/generators/views_base.rb', line 6

def generate_views
  views.each do |view|
    copy_file view
  end
end