Skip to content

Commit

Permalink
fixup! tmp: work around issues in Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning committed Oct 13, 2023
1 parent 1c7eb1a commit 1740618
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/active_record_host_pool/clear_query_cache_patch.rb
Expand Up @@ -28,9 +28,7 @@ def clear_query_caches_for_current_thread

# For Rails 6.1 & 7.0.
module ClearOnHandlerPatch
# def clear_on_handler(handler) # reinstate when 7.1 works
# Work around https://github.com/rails/rails/commit/4a41b758208e3ea817cc9b756d35cb6c53a884db
def clear_on_handler(handler, _owner = nil)
def clear_on_handler(handler)
handler.all_connection_pools.each do |pool|
pool._unproxied_connection.clear_query_cache if pool.active_connection?
end
Expand Down

0 comments on commit 1740618

Please sign in to comment.