method

install_executor_hooks

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ActiveRecord::QueryCache
install_executor_hooks(executor = ActiveSupport::Executor) 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 43
    def self.install_executor_hooks(executor = ActiveSupport::Executor)
      executor.register_hook(self)

      executor.to_complete do
        unless ActiveRecord::Base.connection.transaction_open?
          ActiveRecord::Base.clear_active_connections!
        end
      end
    end
Register or log in to add new notes.