Class: Errship3::ViewGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



7
8
9
# File 'lib/generators/errship3/view_generator.rb', line 7

def self.source_root
  @source_root ||= File.join(File.dirname(__FILE__), 'templates')
end

Instance Method Details

#copy_initializerObject



11
12
13
14
# File 'lib/generators/errship3/view_generator.rb', line 11

def copy_initializer
  copy_file '../templates/standard.html.erb',
           'app/views/errship3/standard.html.erb'
end