module ActiveRecord::ConnectionHandling
def clear_on_handler(handler)
def clear_on_handler(handler) handler.all_connection_pools.each do |pool| pool.connection.clear_query_cache if pool.active_connection? end end
def clear_on_handler(handler) handler.all_connection_pools.each do |pool| pool.connection.clear_query_cache if pool.active_connection? end end