summaryrefslogtreecommitdiff
path: root/report/environment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'report/environment.rb')
-rw-r--r--report/environment.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/report/environment.rb b/report/environment.rb
index 714cebe..04221de 100644
--- a/report/environment.rb
+++ b/report/environment.rb
@@ -8,11 +8,11 @@ gem 'ruby-plot', '= 0.0.2'
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