Class: Bulletin::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



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_installObject



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