From 39226f45d9a64da6afed6e9f27d886f5bd5bc287 Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 6 Apr 2011 09:53:15 +0200 Subject: create policy after create new model --- lazar.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lazar.rb b/lazar.rb index ba85784..9c76bbb 100644 --- a/lazar.rb +++ b/lazar.rb @@ -46,6 +46,7 @@ post '/?' do # create model lazar = YAML.load request.env["rack.input"].read lazar.uri = @uri File.open(@yaml_file,"w+"){|f| f.puts lazar.to_yaml} + OpenTox::Authorization.check_policy(@uri, @subjectid) if File.exists? @yaml_file response['Content-Type'] = 'text/uri-list' @uri end -- cgit v1.2.3 From e78f2e64f61be2e5b550170dda2ad48e6ec62630 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 23 May 2011 13:34:06 +0200 Subject: configure new version requested opentox-ruby gem --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application.rb b/application.rb index 866a267..79cddf0 100644 --- a/application.rb +++ b/application.rb @@ -1,5 +1,5 @@ require 'rubygems' -gem "opentox-ruby", "~> 1" +gem "opentox-ruby", "~> 2" require 'opentox-ruby' set :lock, true -- cgit v1.2.3