Sha256: 0b4cf0ed95d38322b449a187a9f5bf1d16652d8136de71fd86a8073bbc525553

Contents?: true

Size: 416 Bytes

Versions: 12

Compression:

Stored size: 416 Bytes

Contents

class <%= class_name %> < <%= parent? ? options[:parent].classify : "Neo4j::Rails::Model" %>
<% attributes.each do |attribute| -%>
  property :<%= attribute.name %><%= ", :type => #{attribute.type_class}" unless attribute.type_class == 'any' %><%= index_fragment(attribute.name) %>
<% end -%>
<%= has_n_statements if has_n? -%>
<%= has_one_statements if has_one? -%>

<%= timestamp_statements if timestamps? -%>
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
neo4j-2.3.0-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.2.4-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.2.3-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.2.1-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.2.0-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.2.0.rc1-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.0.1-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.0.0-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.0.0.rc2-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.0.0.rc1-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.0.0.alpha.9-java lib/generators/neo4j/model/templates/model.erb
neo4j-2.0.0.alpha.8-java lib/generators/neo4j/model/templates/model.erb