From eac66aa8b4483cc9eaaadb08b7d437113aa66992 Mon Sep 17 00:00:00 2001 From: Thomas Baum Date: Sun, 24 Jul 2011 16:53:10 +0200 Subject: [PATCH] fix passing neo_server instance for traverser-nodes --- lib/neography/relationship_traverser.rb | 4 ++-- lib/neography/version.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/neography/relationship_traverser.rb b/lib/neography/relationship_traverser.rb index 448cb51..a60bdb2 100644 --- a/lib/neography/relationship_traverser.rb +++ b/lib/neography/relationship_traverser.rb @@ -21,8 +21,8 @@ def to_s def each iterator.each do |i| rel = Neography::Relationship.new(i, @node.neo_server) - 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, @node.neo_server) + rel.end_node = Neography::Node.load(rel.end_node, @node.neo_server) yield rel if match_to_other?(rel) end diff --git a/lib/neography/version.rb b/lib/neography/version.rb index 25811ef..d932f03 100644 --- a/lib/neography/version.rb +++ b/lib/neography/version.rb @@ -1,3 +1,3 @@ module Neography - VERSION = "0.0.12" + VERSION = "0.0.13" end