Sha256: 86ff3b5d14077f12e1f3129d194b55867ffe964bf43665bf722ecf58fb1805e3

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 Bytes

Contents

class <%= class_name %> <%= parent? ? "#{options[:parent].classify}" : "" %>
    include Neo4j::ActiveNode
<% 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

4 entries across 4 versions & 1 rubygems

Version Path
neo4j-3.0.0.alpha.6 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-3.0.0.alpha.5 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-3.0.0.alpha.4 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-3.0.0.alpha.3 lib/rails/generators/neo4j/model/templates/model.erb