instance method
clear_active_connections!
Ruby on Rails 5.2.8.1
Since v2.2.3Signature
clear_active_connections!()
Returns any connections in use by the current thread back to the pool, and also returns connections to the pool cached by threads that are no longer alive.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 1004
def clear_active_connections!
connection_pool_list.each(&:release_connection)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 1004
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionHandler