Class: Merb::Generators::ControllerGenerator

Inherits:
NamespacedGenerator show all
Defined in:
lib/generators/controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from NamespacedGenerator

#base_path, #class_name, #file_name, #full_class_name, #modules

Methods inherited from NamedGenerator

#class_name, #file_name, #initialize, #symbol_name, #test_class_name

Methods inherited from Generator

#go_up, #initialize, #with_modules

Methods included from ColorfulMessages

#error, #success, #warning

Constructor Details

This class inherits a constructor from Merb::Generators::NamedGenerator

Class Method Details

.source_rootObject



5
6
7
# File 'lib/generators/controller.rb', line 5

def self.source_root
  File.join(super, 'component', 'controller')
end

Instance Method Details

#after_generationObject



40
41
42
# File 'lib/generators/controller.rb', line 40

def after_generation
  STDOUT.puts "\n\nDon't forget to add request/controller tests first."
end