Class: BcmsPolling::InstallGenerator
- Inherits:
-
Cms::ModuleInstallation
- Object
- Cms::ModuleInstallation
- BcmsPolling::InstallGenerator
- Defined in:
- lib/generators/bcms_polling/install/install_generator.rb
Instance Method Summary collapse
- #add_routes ⇒ Object
-
#add_seed_data_to_project ⇒ Object
Uncomment to add module specific seed data to a project.
- #copy_migrations ⇒ Object
Instance Method Details
#add_routes ⇒ Object
17 18 19 |
# File 'lib/generators/bcms_polling/install/install_generator.rb', line 17 def add_routes route 'mount_bcms_polling' end |
#add_seed_data_to_project ⇒ Object
Uncomment to add module specific seed data to a project.
12 13 14 15 |
# File 'lib/generators/bcms_polling/install/install_generator.rb', line 12 def add_seed_data_to_project copy_file "../bcms_polling.seeds.rb", "db/bcms_polling.seeds.rb" append_to_file "db/seeds.rb", "load File.expand_path('../bcms_polling.seeds.rb', __FILE__)\n" end |
#copy_migrations ⇒ Object
7 8 9 |
# File 'lib/generators/bcms_polling/install/install_generator.rb', line 7 def copy_migrations rake 'bcms_polling:install:migrations' end |