Sha256: 506530b8bb5000b12f2bbacf568101d8eca72c992c40a7af7a104908003d4dd2
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
# frozen_string_literal: true 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 ActiveSupport::PerThreadRegistry # for further details. class RuntimeRegistry # :nodoc: extend ActiveSupport::PerThreadRegistry attr_accessor :sql_runtime def self.sql_runtime; instance.sql_runtime; end def self.sql_runtime=(x); instance.sql_runtime = x; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-7.0.0.alpha2 | lib/active_record/runtime_registry.rb |
activerecord-7.0.0.alpha1 | lib/active_record/runtime_registry.rb |