diff --git a/lib/neography/relationship.rb b/lib/neography/relationship.rb index df4d9b6..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 @@ -34,7 +34,7 @@ def initialize(hash=nil, server=nil) @start_node = hash["start"].split('/').last @end_node = hash["end"].split('/').last @rel_type = hash["type"] - neo_server = server + self.neo_server = server end def neo_server