From 69a69a4f470a8935069681207db9b531452fb595 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 19 Jul 2010 12:12:19 +0200 Subject: regression added --- application.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 304f8c0..3992153 100644 --- a/application.rb +++ b/application.rb @@ -16,6 +16,21 @@ DataMapper.auto_upgrade! require 'lazar.rb' + +helpers do + def activity(a) + case a.to_s + when "true" + act = "active" + when "false" + act = "inactive" + else + act = "not available" + end + act + end +end + get '/?' do # get index of models response['Content-Type'] = 'text/uri-list' Model.all(params).collect{|m| m.uri}.join("\n") + "\n" -- cgit v1.2.3 From 26aa9a42990a958f53f326f3ccaed3848d21fd97 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 19 Jul 2010 12:20:37 +0200 Subject: opentox-api-wrapper bumped to 1.6.0 --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 3992153..b573314 100644 --- a/application.rb +++ b/application.rb @@ -1,5 +1,5 @@ require 'rubygems' -gem "opentox-ruby-api-wrapper", "= 1.5.7" +gem "opentox-ruby-api-wrapper", "= 1.6.0" require 'opentox-ruby-api-wrapper' LOGGER.progname = File.expand_path(__FILE__) -- cgit v1.2.3