class

ActiveRecord::RuntimeRegistry

rails latest stable - Superclass: Object

This is a thread locals registry for Active Record. For example:

ActiveRecord::RuntimeRegistry.sql_runtime

returns the connection handler local to the current unit of execution (either thread of fiber).

Files

  • activerecord/lib/active_record/runtime_registry.rb