diff --git a/lib/neography/relationship.rb b/lib/neography/relationship.rb index 299bd11..383fac4 100644 --- a/lib/neography/relationship.rb +++ b/lib/neography/relationship.rb @@ -21,7 +21,7 @@ def load(rel, db = Neography::Rest.new) rel = db.get_relationship(rel) if rel - rel = Neography::Relationship.new(rel) + rel = Neography::Relationship.new(rel, db) rel.start_node = Neography::Node.load(rel.start_node, db) rel.end_node = Neography::Node.load(rel.end_node, db) end