Method: ActiveRecord::ConnectionHandling#connection_config
- Defined in:
- lib/active_record/connection_handling.rb
#connection_config ⇒ Object
Returns the configuration of the associated connection as a hash:
ActiveRecord::Base.connection_config
# => {pool: 5, timeout: 5000, database: "db/development.sqlite3", adapter: "sqlite3"}
Please use only for reading.
70 71 72 |
# File 'lib/active_record/connection_handling.rb', line 70 def connection_config connection_pool.spec.config end |