Module: QAT::DB::AutoLoad
- Includes:
- Logger
- Defined in:
- lib/qat/db/auto_load.rb
Overview
Class Method Summary collapse
Class Method Details
.load_databases! ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/qat/db/auto_load.rb', line 10 def self.load_databases! if QAT.respond_to?(:configuration) && QAT.configuration[:databases] QAT.configuration[:databases].each { |name, db| QAT::DB::Loader.load_db(name, db) } log.debug { "Database connections loaded in cache: [#{QAT::DB::Loader.connections.keys.join(', ')}]" } else log.debug { "Databases aren't loaded in cache, load databases manually from file using QAT::DB::Loader#load_file" } end end |