instance method
with_handler
Ruby on Rails 6.1.7.10
Since v6.1.7.10 Last seen in v7.0.10 PrivateAvailable in: v6.1.7.10 v7.0.10
Signature
with_handler(handler_key, &blk)
No documentation comment.
Parameters
-
handler_keyreq -
blkblock
Source
# File activerecord/lib/active_record/connection_handling.rb, line 371
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 371
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionHandling