Class: ActiveRecord::RuntimeRegistry
- 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
-
#connection_handler ⇒ Object
Returns the value of attribute connection_handler.
-
#connection_id ⇒ Object
Returns the value of attribute connection_id.
-
#sql_runtime ⇒ Object
Returns the value of attribute sql_runtime.
Method Summary
Methods included from ActiveSupport::PerThreadRegistry
Instance Attribute Details
#connection_handler ⇒ Object
Returns the value of attribute connection_handler
15 16 17 |
# File 'activerecord/lib/active_record/runtime_registry.rb', line 15 def connection_handler @connection_handler end |
#connection_id ⇒ Object
Returns the value of attribute connection_id
15 16 17 |
# File 'activerecord/lib/active_record/runtime_registry.rb', line 15 def connection_id @connection_id end |
#sql_runtime ⇒ Object
Returns the value of attribute sql_runtime
15 16 17 |
# File 'activerecord/lib/active_record/runtime_registry.rb', line 15 def sql_runtime @sql_runtime end |