From 9789095fbf7f2053a95b328d299b49950fa48676 Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 17 Oct 2014 15:37:02 +0200 Subject: updated Gemfile with local opentox-gems; added validation to gemspec --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 0185518..22900f6 100644 --- a/application.rb +++ b/application.rb @@ -9,7 +9,7 @@ helpers do # models must be edited with RDF.type => (RDF::OT.PredictionModel, EchaEndpoint) @@models = [] models = `curl -k GET -H accept:text/uri-list #{$model[:uri]}`.split("\n") - .collect{|m| model = OpenTox::Model::Lazar.find m; if model.type.flatten.to_s =~ /PredictionModel/ then @@models << model end} + .collect{|m| model = OpenTox::Model::Lazar.find m; @@models << model if model.type.flatten.to_s =~ /PredictionModel/} @@cv = [] `curl -k GET -H accept:text/uri-list #{$validation[:uri]}/crossvalidation`.split("\n").each{|cv| x = OpenTox::Validation.find cv; @@cv << x} end -- cgit v1.2.3