method
with_handler
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionHandling
with_handler(handler_key, &blk)public
No documentation available.
# File activerecord/lib/active_record/connection_handling.rb, line 167
def with_handler(handler_key, &blk) # :nodoc:
handler = lookup_connection_handler(handler_key)
swap_connection_handler(handler, &blk)
end