diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-07-22 17:12:51 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-07-22 17:12:51 +0200 |
commit | 34a7b50fb278fc37c937f2fe170b86332eb054c5 (patch) | |
tree | e1debcb36000764b5c7e69e0f2d7e5b92fcb9833 /lib/model.rb | |
parent | 05084b1127f0d2498240472cca8a475f48f1fcc4 (diff) |
CONFIG reverted to @@config
Diffstat (limited to 'lib/model.rb')
-rw-r--r-- | lib/model.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/model.rb b/lib/model.rb index db9efd4..b6cef46 100644 --- a/lib/model.rb +++ b/lib/model.rb @@ -86,8 +86,8 @@ module OpenTox def initialize @source = "http://github.com/helma/opentox-model" - @algorithm = File.join(CONFIG[:services]["opentox-algorithm"],"lazar") - #@independent_variables = File.join(CONFIG[:services]["opentox-algorithm"],"fminer#BBRC_representative") + @algorithm = File.join(@@config[:services]["opentox-algorithm"],"lazar") + #@independent_variables = File.join(@@config[:services]["opentox-algorithm"],"fminer#BBRC_representative") @features = [] @effects = {} @activities = {} @@ -97,12 +97,12 @@ module OpenTox def save @features.uniq! - resource = RestClient::Resource.new(CONFIG[:services]["opentox-model"], :user => @@users[:users].keys[0], :password => @@users[:users].values[0]) + resource = RestClient::Resource.new(@@config[:services]["opentox-model"], :user => @@users[:users].keys[0], :password => @@users[:users].values[0]) resource.post(self.to_yaml, :content_type => "application/x-yaml").chomp.to_s end def self.find_all - RestClientWrapper.get(CONFIG[:services]["opentox-model"]).chomp.split("\n") + RestClientWrapper.get(@@config[:services]["opentox-model"]).chomp.split("\n") end end end |