Sha256: 56293626fdf0a2f88484a56493b3ecb577a003dabd97d23a15cd823675d6cd01

Contents?: true

Size: 660 Bytes

Versions: 172

Compression:

Stored size: 660 Bytes

Contents

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

<% attributes.select(&:reference?).each do |attribute| -%>
  has_one :in_or_out_or_both, :<%= attribute.name %>, type: :FILL_IN_RELATIONSHIP_TYPE_HERE
<% end -%>

<%= has_many_statements if has_many? -%>
<%= has_one_statements if has_one? -%>

<%= timestamp_statements if timestamps? -%>
end

Version data entries

172 entries across 172 versions & 3 rubygems

Version Path
neo4j-9.6.2 lib/rails/generators/neo4j/model/templates/model.erb
activegraph-10.0.0.pre.alpha.11 lib/rails/generators/neo4j/model/templates/model.erb
activegraph-10.0.0.pre.alpha.10 lib/rails/generators/neo4j/model/templates/model.erb
activegraph-10.0.0.pre.alpha.9 lib/rails/generators/neo4j/model/templates/model.erb
activegraph-10.0.0.pre.alpha.8 lib/rails/generators/neo4j/model/templates/model.erb
activegraph-10.0.0.pre.alpha.7 lib/rails/generators/neo4j/model/templates/model.erb
activegraph-10.0.0.pre.alpha.6 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-10.0.0.pre.alpha.5 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-10.0.0.pre.alpha.4 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-10.0.0.pre.alpha.3 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-10.0.0.pre.alpha.2 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-10.0.0.pre.alpha.1 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-9.6.1 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-9.6.0 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-9.5.3 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-9.5.2 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-9.5.0 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-9.4.0 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-9.3.0 lib/rails/generators/neo4j/model/templates/model.erb
neo4j-9.2.4 lib/rails/generators/neo4j/model/templates/model.erb