summaryrefslogtreecommitdiff
path: root/report/report_application.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-01-13 15:18:45 +0100
committermguetlein <martin.guetlein@gmail.com>2011-01-13 15:18:45 +0100
commiteeb0b6df2dbdae29ccf3f4ccd923002e0ed65506 (patch)
treec0b0956d5b107e613c3236ede71462fa7f18cf05 /report/report_application.rb
parent5786ebd5095451e928d9811bd6bbd98af72de99d (diff)
adjust to new wrapper, replace activerecord with datamapper (remove activerecord code), is_classification to feature_type
Diffstat (limited to 'report/report_application.rb')
-rwxr-xr-x[-rw-r--r--]report/report_application.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/report/report_application.rb b/report/report_application.rb
index a61a2df..6d6353f 100644..100755
--- a/report/report_application.rb
+++ b/report/report_application.rb
@@ -123,11 +123,11 @@ delete '/report/:type/:id' do
end
post '/report/:type' do
- task_uri = OpenTox::Task.as_task("Create report",url_for("/report/"+params[:type], :full), params) do |task|
+ task = OpenTox::Task.create("Create report",url_for("/report/"+params[:type], :full)) do |task| #,params
perform do |rs|
rs.create_report(params[:type],params[:validation_uris]?params[:validation_uris].split(/\n|,/):nil,task)
end
end
content_type "text/uri-list"
- halt 202,task_uri+"\n"
+ halt 202,task.uri+"\n"
end