Skip to content

Commit

Permalink
Pass the db to the new Relationship in Relationship.load
Browse files Browse the repository at this point in the history
  • Loading branch information
radford committed Dec 6, 2012
1 parent 608dc63 commit 091ac99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neography/relationship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 091ac99

Please sign in to comment.