File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11FUTURE
22
33- FIX: Typo in `group_ids_lookup` option name in Redis params exclusion list that was preventing the use of the redis backend along with this option.
4+ - FIX: Removes close_db_connection! deprecation warning.
45
5628-06-2023
67
Original file line number Diff line number Diff line change @@ -199,7 +199,9 @@ def close_db_connection!
199199 # ConnectionManagement in Rails puts a BodyProxy around stuff
200200 # this means connections are not returned until rack.async is
201201 # closed
202- if defined? ActiveRecord ::Base . clear_active_connections!
202+ if defined? ActiveRecord ::Base . connection_handler
203+ ActiveRecord ::Base . connection_handler . clear_active_connections!
204+ elsif defined? ActiveRecord ::Base . clear_active_connections!
203205 ActiveRecord ::Base . clear_active_connections!
204206 end
205207 end
You can’t perform that action at this time.
0 commit comments