Sha256: 0998a8e7f0590a01a4721e899f6d2045a8f2a932788a47bff12d0deb7b2d333b
Contents?: true
Size: 536 Bytes
Versions: 3
Compression:
Stored size: 536 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 source_root File.join File.dirname(__FILE__), "templates" end def path "/#{base_path}" end end
Version data entries
3 entries across 3 versions & 2 rubygems