Sha256: 2231648aa0183391c18f4ce71658eedb80bb324db04dc13d54f3c36ea9dee3da
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
class ControllerGenerator < BaseScaffold def build define_source_paths template("controller.erb", Configuration.main_class_path(Configuration.controllers_package, "#{controller_class_name}.java")) template("controller_test.erb", Configuration.test_class_path(Configuration.controllers_package, "#{controller_test_class_name}.java")) end def template_path "src/templates/controllers" end def path "/#{base_path}" end def source_root File.join(File.dirname(__FILE__), "templates") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
springmvc-scaffold-1.0.1 | lib/springmvc-scaffold/generators/scaffold/controller/controller_generator.rb |