instance method
clear_active_connections!
Ruby on Rails 2.2.3
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 302
def clear_active_connections!
@connection_pools.each_value {|pool| pool.release_connection }
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 302
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionHandler