Module: AdvancedConnection::ActiveRecordExt::ConnectionPool::StatementPooling
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/advanced_connection/active_record_ext/connection_pool/statement_pooling.rb
Instance Method Summary collapse
Instance Method Details
#new_connection_with_statement_pooling ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/advanced_connection/active_record_ext/connection_pool/statement_pooling.rb', line 31 def new_connection_with_statement_pooling new_connection_without_statement_pooling.tap { |conn| unless conn.respond_to? :around_connection_checkin conn.class.instance_exec { include AbstractAdapter::StatementPooling } end } end |