From b48aa16739f791970c9851f18084d390c75086a7 Mon Sep 17 00:00:00 2001 From: Vineet Thanedar Date: Fri, 23 Aug 2013 16:31:59 -0700 Subject: [PATCH] always return end node --- lib/deja/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/deja/node.rb b/lib/deja/node.rb index e220d0a..aceffcd 100644 --- a/lib/deja/node.rb +++ b/lib/deja/node.rb @@ -66,7 +66,7 @@ def define_alias_methods(rel, aliases) define_method "#{aliases[:in_plural]}=" do |relationship| current_rel = instance_variable_get("@#{rel}") || [] - current_rel << [relationship.start_node, relationship] + current_rel << [relationship.end_node, relationship] instance_variable_set("@#{rel}", current_rel) end