Class: Brightcontent::Pages::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Brightcontent::Pages::Generators::InstallGenerator
- Defined in:
- lib/generators/brightcontent/pages/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_routes ⇒ Object
12 13 14 |
# File 'lib/generators/brightcontent/pages/install_generator.rb', line 12 def add_routes inject_into_file 'config/routes.rb', "\n pages_resources", { :after => "brightcontent_resources do" } end |
#copy_migrations ⇒ Object
8 9 10 |
# File 'lib/generators/brightcontent/pages/install_generator.rb', line 8 def copy_migrations rake "brightcontent_pages_engine:install:migrations" end |