class method self.connection_config

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.2.22.5

Available in: v3.1.12 v3.2.22.5

Signature

self.connection_config()

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.

Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb, line 106
      def connection_config
        connection_pool.spec.config
      end

Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb line 106 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close