Class: SimpleForum::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SimpleForum::Generators::InstallGenerator
- Defined in:
- lib/generators/simple_forum/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
9 10 11 |
# File 'lib/generators/simple_forum/install_generator.rb', line 9 def copy_initializer template "simple_forum.rb", "config/initializers/simple_forum.rb" end |
#mount_engine ⇒ Object
13 14 15 |
# File 'lib/generators/simple_forum/install_generator.rb', line 13 def mount_engine route 'mount SimpleForum::Engine => "/forum"' end |