method
clear_all_connections!
v7.1.3.2 -
Show latest stable
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::ConnectionHandler
clear_all_connections!(role = nil)
public
Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 206 def clear_all_connections!(role = nil) if role.nil? deprecation_for_pool_handling(__method__) role = ActiveRecord::Base.current_role end each_connection_pool(role).each(&:disconnect!) end