Class: SimpleForum::Generators::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SimpleForum::Generators::ViewsGenerator
- Defined in:
- lib/generators/simple_forum/views_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_layout ⇒ Object
12 13 14 |
# File 'lib/generators/simple_forum/views_generator.rb', line 12 def copy_layout copy_file "layouts/simple_forum.html.erb", "app/views/layouts/simple_forum.html.erb" end |
#copy_views ⇒ Object
8 9 10 |
# File 'lib/generators/simple_forum/views_generator.rb', line 8 def copy_views directory 'simple_forum', "app/views/simple_forum" end |