From bebe36ff190714771638c2574a581570eefd4fe5 Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Tue, 7 Jul 2015 10:45:47 +0200 Subject: [PATCH] Fix an error when building a mapping URI from the ID mapping (was using a nil constant). Now mappings can be get by providing either the full encoded URI or the UUID --- controllers/mappings_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/mappings_controller.rb b/controllers/mappings_controller.rb index 29e26483a..7cb1937f0 100644 --- a/controllers/mappings_controller.rb +++ b/controllers/mappings_controller.rb @@ -83,7 +83,7 @@ class MappingsController < ApplicationController mapping_id = RDF::URI.new(params[:mapping]) else mapping_id = - "http://data.bioontology.org/rest_backup_mappings/#{mapping_id}" + "http://data.bioontology.org/rest_backup_mappings/#{params[:mapping]}" mapping_id = RDF::URI.new(mapping_id) end mapping = LinkedData::Mappings.get_rest_mapping(mapping_id)