aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/lib/active_record/runtime_registry.rb
blob: 17890dd29f89c85d77f8c5600be7e093267498f2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                            
                                                                   


                                                      



                                                                      





                                                                   
require 'active_support/per_thread_registry'

module ActiveRecord
  # This is a thread locals registry for Active Record. For example
  #
  #   ActiveRecord::RuntimeRegistry.connection_handler
  #
  # returns the connection handler local to the current thread.
  #
  # See the documentation of <tt>ActiveSupport::PerThreadRegistry</tt>
  # for further details.
  class RuntimeRegistry
    extend ActiveSupport::PerThreadRegistry

    attr_accessor :connection_handler, :sql_runtime, :connection_id
  end
end