From 44ba51c5ea51383f34e9b2605ef2a5f78c4730b1 Mon Sep 17 00:00:00 2001 From: Martin Kleppmann Date: Wed, 17 Jun 2009 21:51:29 +0100 Subject: [PATCH] Neo4j#load_relationship no longer accepts a string --- lib/rest/rest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rest/rest.rb b/lib/rest/rest.rb index 85a27de9a..9e3d3c592 100644 --- a/lib/rest/rest.rb +++ b/lib/rest/rest.rb @@ -34,7 +34,7 @@ module RestMixin Sinatra::Application.get("/relations/:id") do content_type :json Neo4j::Transaction.run do - rel = Neo4j.load_relationship(params[:id]) + rel = Neo4j.load_relationship(params[:id].to_i) return 404, "Can't find relationship with id #{params[:id]}" if rel.nil? rel.props.to_json end