Module: Rage::Ext::ActiveRecord::ConnectionPool::ConnectionWithVerify
- Included in:
- Rage::Ext::ActiveRecord::ConnectionPool
- Defined in:
- lib/rage/ext/active_record/connection_pool.rb
Overview
reconnect closed connections on checkout;
only included with Rage.config.should_manually_restore_ar_connections?
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/rage/ext/active_record/connection_pool.rb', line 30 def connection conn = super if conn.__needs_reconnect conn.reconnect! conn.__needs_reconnect = false end conn end |