Skip to content

Commit

Permalink
Neo4j#load_relationship no longer accepts a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kleppmann committed Jun 17, 2009
1 parent 98c0271 commit 44ba51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rest/rest.rb
Expand Up @@ -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
Expand Down

0 comments on commit 44ba51c

Please sign in to comment.