Flowdock
method

complete

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: ActiveRecord::QueryCache
complete((caching_pool, caching_was_enabled)) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/query_cache.rb, line 35
    def self.complete((caching_pool, caching_was_enabled))
      caching_pool.disable_query_cache! unless caching_was_enabled

      ActiveRecord::Base.connection_handler.connection_pool_list.each do |pool|
        pool.release_connection if pool.active_connection? && !pool.connection.transaction_open?
      end
    end
Register or log in to add new notes.