Class: Annotot::Install
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Annotot::Install
- Defined in:
- lib/generators/annotot/install_generator.rb
Overview
Install generator
Instance Method Summary collapse
Instance Method Details
#add_routes ⇒ Object
5 6 7 |
# File 'lib/generators/annotot/install_generator.rb', line 5 def add_routes route "mount Annotot::Engine => '/'" end |
#run_annotot_migrations ⇒ Object
9 10 11 12 |
# File 'lib/generators/annotot/install_generator.rb', line 9 def run_annotot_migrations rake 'annotot:install:migrations' rake 'db:migrate' end |