Sha256: 5819551c151b79c913ae700fbf419ff9d58994b2a952c9c0fdcf232ccef40c99
Contents?: true
Size: 606 Bytes
Versions: 3
Compression:
Stored size: 606 Bytes
Contents
class BaseScaffold < VraptorScaffold::Base def initialize(model, attributes={}) super @model = model @attributes = attributes end def class_name @model.capitalize end def test_class_name "#{class_name}Test" end def repository_interface_name "#{class_name}Repository" end def repository_impl_name "#{repository_interface_name}Impl" end def repository_test_class_name "#{repository_impl_name}Test" end def controller_class_name "#{class_name}Controller" end def controller_test_class_name "#{controller_class_name}Test" end end
Version data entries
3 entries across 3 versions & 1 rubygems