APIdock / Ruby on Rails
/
Browse About
method

with_handler

v7.0.0 - Show latest stable - Class: ActiveRecord::ConnectionHandling
with_handler(handler_key, &blk)
private

No documentation available.

# File activerecord/lib/active_record/connection_handling.rb, line 357
      def with_handler(handler_key, &blk)
        handler = lookup_connection_handler(handler_key)
        swap_connection_handler(handler, &blk)
      end

Related methods

  • Instance methods
  • clear_cache!
  • clear_query_caches_for_current_thread
  • connected?
  • connected_to
  • connected_to?
  • connected_to_many
  • connecting_to
  • connection
  • connection_db_config
  • connection_pool
  • connection_specification_name
  • connects_to
  • establish_connection
  • lookup_connection_handler
  • mysql2_connection
  • postgresql_connection
  • primary_class?
  • prohibit_shard_swapping
  • remove_connection
  • retrieve_connection
  • shard_swapping_prohibited?
  • sqlite3_connection
  • while_preventing_writes
  • Private methods
  • privateappend_to_connected_to_stack
  • privateclear_on_handler
  • privateresolve_config_for_connection
  • privateswap_connection_handler
  • privatewith_handler
  • privatewith_role_and_shard
APIdock API Documentation Browser

Track developer experience with Swarmia's DX Core 4 metrics.

© 2026 APIdock