From 0071cbd5f91cd3456a6e46b27155e8e408b384c1 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Fri, 23 Mar 2012 17:22:35 +0100 Subject: fix subjectid quoting in eval --- lib/opentox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/opentox.rb b/lib/opentox.rb index 4b43547..2232063 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -146,7 +146,7 @@ module OpenTox internal_server_error "Cannot determine class from URI '#{uri} (Candidate classes are #{result.inspect}) or matadata." unless klass end # initialize with/without subjectid - subjectid ? eval("#{self}.new(\"#{uri}\", #{subjectid})") : eval("#{self}.new(\"#{uri}\")") + subjectid ? eval("#{self}.new(\"#{uri}\", \"#{subjectid}\")") : eval("#{self}.new(\"#{uri}\")") end end -- cgit v1.2.3