Class: ActiveRecord::RuntimeRegistry

Inherits:
Object
  • Object
show all
Extended by:
ActiveSupport::PerThreadRegistry
Defined in:
activerecord/lib/active_record/runtime_registry.rb

Overview

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.

Instance Attribute Summary collapse

Method Summary

Methods included from ActiveSupport::PerThreadRegistry

extended, instance

Instance Attribute Details

#connection_handlerObject

Returns the value of attribute connection_handler



17
18
19
# File 'activerecord/lib/active_record/runtime_registry.rb', line 17

def connection_handler
  @connection_handler
end

#sql_runtimeObject

Returns the value of attribute sql_runtime



17
18
19
# File 'activerecord/lib/active_record/runtime_registry.rb', line 17

def sql_runtime
  @sql_runtime
end