summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-03-03 12:57:43 +0100
committerChristoph Helma <helma@in-silico.ch>2011-03-03 12:57:43 +0100
commit8b46f5a4f389d7cd54f6e8b38025d275f9d3ed1b (patch)
tree3d786b2f371db0f097abf11438def17beac820cf /lib
parent5f243f1e9e0a8e12cd8a2267bcec3140d21bf445 (diff)
parentd5378ac285f200a9a75b52030856c77f4697325f (diff)
Merge branch 'development' of github.com:helma/opentox-validation into development
Conflicts: application.rb example.rb report/report_persistance.rb
Diffstat (limited to 'lib')
-rw-r--r--lib/validation_db.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/validation_db.rb b/lib/validation_db.rb
index 1152abf..7afab90 100644
--- a/lib/validation_db.rb
+++ b/lib/validation_db.rb
@@ -6,11 +6,11 @@ require "lib/merge.rb"
unless ActiveRecord::Base.connected?
ActiveRecord::Base.establish_connection(
- :adapter => @@config[:database][:adapter],
- :host => @@config[:database][:host],
- :database => @@config[:database][:database],
- :username => @@config[:database][:username],
- :password => @@config[:database][:password]
+ :adapter => CONFIG[:database][:adapter],
+ :host => CONFIG[:database][:host],
+ :database => CONFIG[:database][:database],
+ :username => CONFIG[:database][:username],
+ :password => CONFIG[:database][:password]
)
ActiveRecord::Base.logger = Logger.new("/dev/null")
end