method

connection_db_config

Importance_1
v7.0.0 - Show latest stable - 0 notes - Class: ConnectionHandling
connection_db_config() public

Returns the db_config object from the associated connection:

ActiveRecord::Base.connection_db_config
  #<ActiveRecord::DatabaseConfigurations::HashConfig:0x00007fd1acbded10 @env_name="development",
    @name="primary", @config={pool: 5, timeout: 5000, database: "db/development.sqlite3", adapter: "sqlite3"}>

Use only for reading.

Show source
Register or log in to add new notes.