lib/neo4j/active_node/property.rb in activegraph-10.0.0.pre.alpha.9 vs lib/neo4j/active_node/property.rb in activegraph-10.0.0.pre.alpha.10

- old
+ new

@@ -3,10 +3,10 @@ extend ActiveSupport::Concern include Neo4j::Shared::Property def initialize(attributes = nil) super(attributes) - @attributes ||= Hash[self.class.attributes_nil_hash] + @attributes ||= Neo4j::AttributeSet.new(self.class.attributes_nil_hash, self.class.attributes.keys) end module ClassMethods # Extracts keys from attributes hash which are associations of the model # TODO: Validate separately that relationships are getting the right values? Perhaps also store the values and persist relationships on save?