Skip to content

Commit

Permalink
Added missing db parameter for loading relationship nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
elado committed Dec 31, 2011
1 parent 5ac7729 commit 318da9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/neography/relationship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def load(*args)
rel = db.get_relationship(rel)
unless rel.nil?
rel = Neography::Relationship.new(rel)
rel.start_node = Neography::Node.load(rel.start_node)
rel.end_node = Neography::Node.load(rel.end_node)
rel.start_node = Neography::Node.load(rel.start_node, db)
rel.end_node = Neography::Node.load(rel.end_node, db)
end
rel
end
Expand Down

0 comments on commit 318da9e

Please sign in to comment.