lib/neo4j/active_node/has_n/nodes.rb in neo4j-3.0.0.alpha.7 vs lib/neo4j/active_node/has_n/nodes.rb in neo4j-3.0.0.alpha.8
- old
+ new
@@ -79,11 +79,10 @@
#
# p.friends << n2 << n3
#
# @return self
def <<(other)
- @decl_rel.create_relationship_to(@node, other)
- self
+ !@decl_rel.create_relationship_to(@node, other) ? false : self
end
end
end
end