Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning committed Oct 13, 2023
1 parent 3b0e1c6 commit 1c7e32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record_host_pool/clear_query_cache_patch.rb
Expand Up @@ -20,7 +20,7 @@ module ActiveRecordHostPool
# For Rails 7.1.
module NewClearQueryCachePatch
def clear_query_caches_for_current_thread
ActiveRecord::Base.connection_handler.all_connection_pools.each do |pool|
connection_handler.each_connection_pool do |pool|
pool._unproxied_connection.clear_query_cache if pool.active_connection?
end
end
Expand Down

0 comments on commit 1c7e32c

Please sign in to comment.