instance method with_handler

Ruby on Rails 7.0.10

Since v6.1.7.10 Last seen in v7.0.10 Private

Available in: v6.1.7.10 v7.0.10

Signature

with_handler(handler_key, &blk)

No documentation comment.

Parameters

handler_key req
blk block
Source
# 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

Defined in activerecord/lib/active_record/connection_handling.rb line 357 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionHandling

Type at least 2 characters to search.

↑↓ navigate · open · esc close