diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-03-23 17:22:35 +0100 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-03-23 17:22:35 +0100 |
commit | 0071cbd5f91cd3456a6e46b27155e8e408b384c1 (patch) | |
tree | a9039136d605138ea0eb29f4f5f5b29d1ba86ca7 | |
parent | abe5327fc69f0e91083cc3f47db2990b84404e53 (diff) |
fix subjectid quoting in eval
-rw-r--r-- | lib/opentox.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |