Skip to content

Commit

Permalink
Merge pull request #71 from radford/set-neo-server-on-rels
Browse files Browse the repository at this point in the history
Set neo_server on Relationships
  • Loading branch information
rdvdijk committed Dec 6, 2012
2 parents 12c27f2 + 091ac99 commit 2b750ef
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 @@ -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 All @@ -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
Expand Down

0 comments on commit 2b750ef

Please sign in to comment.