Class: Ecm::CmsCore::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/ecm/cms_core/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_active_adminObject



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_controllerObject

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_localesObject



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_migrationsObject



9
10
11
12
13
# File 'lib/generators/ecm/cms_core/install/install_generator.rb', line 9

def generate_migrations
  unless options[:skip_migration]
    generate 'ecm:cms_core:migrations'
  end  
end