Class: Loudmouth::Generators::OverrideControllerGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Loudmouth::Generators::OverrideControllerGenerator
- Defined in:
- lib/generators/loudmouth/override_controller_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_override_controller ⇒ Object
8 9 10 |
# File 'lib/generators/loudmouth/override_controller_generator.rb', line 8 def copy_override_controller directory "comments_controller.rb", "app/controllers/comments_controller.rb" end |
#show_readme ⇒ Object
12 13 14 |
# File 'lib/generators/loudmouth/override_controller_generator.rb', line 12 def show_readme readme "README.override_controller" if behavior == :invoke end |