Class: Errship3::ViewGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Errship3::ViewGenerator
- Defined in:
- lib/generators/errship3/view_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
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_initializer ⇒ Object
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 |