Class: TheRoleManagementPanelGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- TheRoleManagementPanelGenerator
- Defined in:
- lib/generators/the_role_management_panel/the_role_management_panel_generator.rb
Instance Method Summary collapse
-
#generate_controllers ⇒ Object
bundle exec rails g the_role_management_panel NAME.
Instance Method Details
#generate_controllers ⇒ Object
bundle exec rails g the_role_management_panel NAME
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/generators/the_role_management_panel/the_role_management_panel_generator.rb', line 6 def generate_controllers if gen_name == 'install' cp_views cp_assets cp_controllers elsif gen_name == 'assets' cp_assets elsif gen_name == 'controllers' cp_controllers elsif gen_name == 'views' cp_views elsif gen_name == 'locales' cp_locales elsif gen_name == 'help' cp_help else puts 'TheRole ManagementPanel Generator - wrong Name' puts 'Try to use install' end end |