I have a standalone ruby program that has many code files in many
directories.The program interacts with the DB so a lot of the code files
ActiveRecord::Base.establish_connection( :adapter => "mysql", :database => "b2b", :username => "root", :password => "Mu2008", :socket => "/var/lib/mysql/mysql.sock", :host => "188.8.131.52" )
Is there a way to centralize this code and create a global connection
So I initialize it once and use it everywhere.