Sha256: e71338b6ced243803167448fcee881a9b4803159d1cf4771814e8df6e847d2c5

Contents?: true

Size: 433 Bytes

Versions: 5

Compression:

Stored size: 433 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

5 entries across 5 versions & 1 rubygems

Version Path
neo4j-3.0.0.alpha.11 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-3.0.0.alpha.10 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-3.0.0.alpha.9 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-3.0.0.alpha.8 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-3.0.0.alpha.7 lib/rails/generators/neo4j/model/templates/model.erb