From 34ef45bf1f87c787e3ddaccc03a36a5fa2d54c7f Mon Sep 17 00:00:00 2001 From: mguetlein Date: Thu, 3 Feb 2011 18:10:48 +0100 Subject: update /refactor validation.rb --- lib/algorithm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/algorithm.rb') diff --git a/lib/algorithm.rb b/lib/algorithm.rb index ae05e16..bfa9860 100644 --- a/lib/algorithm.rb +++ b/lib/algorithm.rb @@ -34,7 +34,7 @@ module OpenTox # Find Generic Opentox Algorithm via URI, and loads metadata # @param [String] uri Algorithm URI # @return [OpenTox::Algorithm::Generic] Algorithm instance, nil if alogrithm was not found - def self.find(uri, subjectid) + def self.find(uri, subjectid=nil) return nil unless uri alg = Generic.new(uri) alg.load_metadata( subjectid ) -- cgit v1.2.3