Class: FavoriteIt::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- FavoriteIt::InstallGenerator
- Defined in:
- lib/generators/favorite_it/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_config ⇒ Object
7 8 9 |
# File 'lib/generators/favorite_it/install/install_generator.rb', line 7 def copy_config template "config/initializers/favorite_it.rb" end |
#copy_migrations ⇒ Object
4 5 6 |
# File 'lib/generators/favorite_it/install/install_generator.rb', line 4 def copy_migrations rake("favorite_it_engine:install:migrations") end |
#display_config ⇒ Object
11 12 13 |
# File 'lib/generators/favorite_it/install/install_generator.rb', line 11 def display_config say "Please edit config/initializers/favorite_it.rb to your needs." end |