Class: Bulletin::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Bulletin::Generators::InstallGenerator
- Defined in:
- lib/generators/bulletin/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
12 13 14 |
# File 'lib/generators/bulletin/install_generator.rb', line 12 def copy_initializer template "bulletin.rb", "config/initializers/bulletin.rb" end |
#show_post_install ⇒ Object
16 17 18 19 20 21 |
# File 'lib/generators/bulletin/install_generator.rb', line 16 def show_post_install say "" say "Bulletin installed.", :green say " 1. Run `bin/rails db:migrate` to create its tables." say " 2. Mount it in config/routes.rb: mount Bulletin::Engine => \"/bulletin\"" end |