Class: Brightcontent::Pages::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_routesObject


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_migrationsObject


8
9
10
# File 'lib/generators/brightcontent/pages/install_generator.rb', line 8

def copy_migrations
  rake "brightcontent_pages_engine:install:migrations"
end