Module: ChronoModel::Patches::DBConsole::DbConfig
- Defined in:
- lib/chrono_model/patches/db_console.rb
Instance Method Summary collapse
Instance Method Details
#db_config ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/chrono_model/patches/db_console.rb', line 13 def db_config return @patched_db_config if @patched_db_config original_db_config = super patched_db_configuration_hash = original_db_config.configuration_hash.dup.tap do |config| config[:adapter] = 'postgresql/chronomodel' end original_db_config.instance_variable_set :@configuration_hash, patched_db_configuration_hash @patched_db_config = original_db_config end |