Class: ControllerGenerator
- Inherits:
-
BaseScaffold
show all
- Defined in:
- lib/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator.rb
Instance Method Summary
collapse
#base_path, #class_name, #controller_class_name, #controller_test_class_name, #initialize, #model_list_name, #model_parameter_name, #repository_impl_name, #repository_interface_name, #repository_test_class_name, #test_class_name
Constructor Details
This class inherits a constructor from BaseScaffold
Instance Method Details
#path ⇒ Object
17
18
19
|
# File 'lib/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator.rb', line 17
def path
"/#{base_path}"
end
|
#source_root ⇒ Object
13
14
15
|
# File 'lib/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator.rb', line 13
def source_root
File.join File.dirname(__FILE__), "templates"
end
|
#template_path ⇒ Object
9
10
11
|
# File 'lib/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator.rb', line 9
def template_path
"src/templates/controllers"
end
|