Class: ActiveRecord::Health::ConnectionModelProxy
- Inherits:
-
Object
- Object
- ActiveRecord::Health::ConnectionModelProxy
- Defined in:
- lib/activerecord/health/extensions.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
- #class ⇒ Object
- #connection_db_config ⇒ Object
-
#initialize(db_config_name, connection) ⇒ ConnectionModelProxy
constructor
A new instance of ConnectionModelProxy.
Constructor Details
#initialize(db_config_name, connection) ⇒ ConnectionModelProxy
Returns a new instance of ConnectionModelProxy.
28 29 30 31 |
# File 'lib/activerecord/health/extensions.rb', line 28 def initialize(db_config_name, connection) @db_config_name = db_config_name @connection = connection end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
26 27 28 |
# File 'lib/activerecord/health/extensions.rb', line 26 def connection @connection end |
Instance Method Details
#class ⇒ Object
37 38 39 |
# File 'lib/activerecord/health/extensions.rb', line 37 def class ActiveRecord::Base end |
#connection_db_config ⇒ Object
33 34 35 |
# File 'lib/activerecord/health/extensions.rb', line 33 def connection_db_config DbConfigProxy.new(@db_config_name) end |