From 9da1b6d5ea9b0c15640ed7e00849ea28666fa4ef Mon Sep 17 00:00:00 2001 From: rautenberg Date: Wed, 28 Sep 2016 18:59:06 +0200 Subject: add neighbor_algorithm_parameters[:type] to 4.3 --- lib/report.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/report.rb b/lib/report.rb index 1a15b0c..b313839 100644 --- a/lib/report.rb +++ b/lib/report.rb @@ -94,8 +94,8 @@ get "/report/:id/?" do report.ref_catalog :algorithm_explicit, :algorithms_catalog, :algorithms_catalog_2 # Descriptors in the model 4.3 - if neighbor_algorithm_parameters[:type] - report.change_catalog :descriptors_catalog, :descriptors_catalog_1, {:description => "", :name => "#{neighbor_algorithm_parameters[:type]}", :publication_ref => "", :units => ""} + if model.neighbor_algorithm_parameters[:type] + report.change_catalog :descriptors_catalog, :descriptors_catalog_1, {:description => "", :name => "#{model.neighbor_algorithm_parameters[:type]}", :publication_ref => "", :units => ""} report.ref_catalog :algorithms_descriptors, :descriptors_catalog, :descriptors_catalog_1 end -- cgit v1.2.3