Sha256: 4bac293b3cce859d8fb2afba1729e97a5404b2f6c0c26537b390a649ffd471b0

Contents?: true

Size: 327 Bytes

Versions: 7

Compression:

Stored size: 327 Bytes

Contents

class ModelGenerator < BaseScaffold

  def self.source_root
    File.join File.dirname(__FILE__), "templates"
  end

  def build
    template("model.erb", Configuration.main_class_path("models", "#{class_name}.java"))
    template("model_test.erb", Configuration.test_class_path("models", "#{test_class_name}.java"))
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vraptor-scaffold-1.1.0 lib/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator.rb
vraptor-scaffold-1.1.0.pre lib/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator.rb
vraptor-scaffold-1.0.0 lib/generators/scaffold_generator/model_generator/model_generator.rb
vraptor-scaffold-0.0.4 lib/generators/scaffold_generator/model_generator/model_generator.rb
vraptor-scaffold-0.0.3 lib/generators/scaffold_generator/model_generator/model_generator.rb
vraptor-scaffold-0.0.2 lib/generators/scaffold_generator/model_generator/model_generator.rb
vraptor-scaffold-0.0.1 lib/generators/scaffold_generator/model_generator/model_generator.rb