Class: TheCommentsGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- TheCommentsGenerator
- Defined in:
- lib/generators/the_comments/the_comments_generator.rb
Instance Method Summary collapse
-
#generate_controllers ⇒ Object
> rails g the_comments NAME.
Instance Method Details
#generate_controllers ⇒ Object
> rails g the_comments NAME
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/generators/the_comments/the_comments_generator.rb', line 6 def generate_controllers case gen_name when 'locales' cp_locales when 'models' cp_models when 'controllers' cp_controllers when 'config' cp_config when 'install' cp_config cp_models cp_controllers else puts 'TheComments Generator - wrong Name' puts 'Try to use [ install | config | controllers | models ]' end end |