Module: AdvancedConnection::ActiveRecordExt::ConnectionPool::WithoutConnection
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/advanced_connection/active_record_ext/connection_pool/without_connection.rb
Instance Method Summary collapse
Instance Method Details
#without_connection ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/advanced_connection/active_record_ext/connection_pool/without_connection.rb', line 37 def without_connection return unless block_given? if AdvancedConnection.callbacks.without_connection.present? run_callbacks(:without_connection) do __without_connection do yield end end else __without_connection do yield end end end |