Sha256: 7a45d238283fc439263bba8ee01867ca367e141fd4f96edd4339543fb01db90b

Contents?: true

Size: 475 Bytes

Versions: 54

Compression:

Stored size: 475 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' %><%= "\n  " + index_fragment if index_fragment = index_fragment(attribute.name) %>
<% end -%>
<%= has_many_statements if has_many? -%>
<%= has_one_statements if has_one? -%>

<%= timestamp_statements if timestamps? -%>
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
neo4j-5.2.7 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.2.6 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.2.5 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.2.3 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.2.2 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.2.1 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.2.0 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.1.5 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.1.4 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.1.3 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.1.2 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.1.1 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.1.0 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.1.0.rc.3 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.1.0.rc.2 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.1.0.rc.1 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.0.15 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.0.14 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.0.13 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-5.0.12 lib/rails/generators/neo4j/model/templates/model.erb