Sha256: c86283e83db8fb2b67bed153efb26a9ef7ad996647ef23839c6518015edef0a0
Contents?: true
Size: 607 Bytes
Versions: 35
Compression:
Stored size: 607 Bytes
Contents
require 'active_support/per_thread_registry' module ActiveRecord # This is a thread locals registry for EXPLAIN. For example # # ActiveRecord::ExplainRegistry.queries # # returns the collected queries local to the current thread. # # See the documentation of ActiveSupport::PerThreadRegistry # for further details. class ExplainRegistry # :nodoc: extend ActiveSupport::PerThreadRegistry attr_accessor :queries, :collect def initialize reset end def collect? @collect end def reset @collect = false @queries = [] end end end
Version data entries
35 entries across 35 versions & 4 rubygems