Class: Ecm::CmsCore::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Ecm::CmsCore::Generators::InstallGenerator
- Defined in:
- lib/generators/ecm/cms_core/install/install_generator.rb
Instance Method Summary collapse
- #generate_active_admin ⇒ Object
-
#generate_controller ⇒ Object
def generate_models generate ‘ecm:cms_core:models’ end.
- #generate_locales ⇒ Object
- #generate_migrations ⇒ Object
Instance Method Details
#generate_active_admin ⇒ Object
27 28 29 |
# File 'lib/generators/ecm/cms_core/install/install_generator.rb', line 27 def generate_active_admin generate 'ecm:cms_core:active_admin' end |
#generate_controller ⇒ Object
def generate_models
generate 'ecm:cms_core:models'
end
19 20 21 |
# File 'lib/generators/ecm/cms_core/install/install_generator.rb', line 19 def generate_controller generate 'ecm:cms_core:controller' end |
#generate_locales ⇒ Object
23 24 25 |
# File 'lib/generators/ecm/cms_core/install/install_generator.rb', line 23 def generate_locales generate 'ecm:cms_core:locales' end |
#generate_migrations ⇒ Object
9 10 11 12 13 |
# File 'lib/generators/ecm/cms_core/install/install_generator.rb', line 9 def generate_migrations unless [:skip_migration] generate 'ecm:cms_core:migrations' end end |