lib/rails/generators/neo4j/model/templates/model.erb in neo4j-3.0.0.alpha.6 vs lib/rails/generators/neo4j/model/templates/model.erb in neo4j-3.0.0.alpha.7
- old
+ new
@@ -1,8 +1,8 @@
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' %>
+ 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? -%>
\ No newline at end of file