Class: Loudmouth::Generators::OverrideControllerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/loudmouth/override_controller_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_override_controllerObject



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_readmeObject



12
13
14
# File 'lib/generators/loudmouth/override_controller_generator.rb', line 12

def show_readme
  readme "README.override_controller" if behavior == :invoke
end