Class: PiccoBlog::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PiccoBlog::Generators::InstallGenerator
- Defined in:
- lib/generators/picco_blog/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_initializer ⇒ Object
7 8 9 |
# File 'lib/generators/picco_blog/install/install_generator.rb', line 7 def create_initializer copy_file "initializer.rb", "config/initializers/picco_blog.rb" end |
#run_migrations ⇒ Object
11 12 13 14 |
# File 'lib/generators/picco_blog/install/install_generator.rb', line 11 def run_migrations rake "picco_blog:install:migrations" rake "acts_as_taggable_on_engine:install:migrations" end |