Class: ActiveRecord::ConnectionAdapters::PostgreSQLProxyAdapter
- Inherits:
-
PostgreSQLAdapter
- Object
- PostgreSQLAdapter
- ActiveRecord::ConnectionAdapters::PostgreSQLProxyAdapter
- Includes:
- ActiveRecordProxyAdapters::Hijackable
- Defined in:
- lib/active_record/connection_adapters/postgresql_proxy_adapter.rb
Overview
This adapter is a proxy to the original PostgreSQLAdapter, allowing the use of the ActiveRecordProxyAdapters::PrimaryReplicaProxy.
Constant Summary collapse
- ADAPTER_NAME =
"PostgreSQLProxy"
Instance Method Summary collapse
-
#initialize ⇒ PostgreSQLProxyAdapter
constructor
A new instance of PostgreSQLProxyAdapter.
Constructor Details
#initialize ⇒ PostgreSQLProxyAdapter
Returns a new instance of PostgreSQLProxyAdapter.
24 25 26 27 28 |
# File 'lib/active_record/connection_adapters/postgresql_proxy_adapter.rb', line 24 def initialize(...) @proxy = ActiveRecordProxyAdapters::PostgreSQLProxy.new(self) super end |