lib/neo4j/active_rel/property.rb in neo4j-5.0.0.rc.2 vs lib/neo4j/active_rel/property.rb in neo4j-5.0.0.rc.3
- old
+ new
@@ -4,10 +4,10 @@
include Neo4j::Shared::Property
%w(to_node from_node).each do |direction|
define_method("#{direction}") { instance_variable_get("@#{direction}") }
define_method("#{direction}=") do |argument|
- fail FrozenRelError, 'Relationship start/end nodes cannot be changed once persisted' if self.persisted?
+ fail FrozenRelError, 'Relationship start/end nodes cannot be changed once persisted' if _persisted_obj
instance_variable_set("@#{direction}", argument)
end
end
alias_method :start_node, :from_node