Class: ActiveRecord::ExplainRegistry
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activerecord/lib/active_record/explain_registry.rb |
Overview
This is a thread locals registry for EXPLAIN. For example
ActiveRecord::ExplainRegistry.queries
returns the collected queries local to the current thread.
Class Method Summary
- .new ⇒ ExplainRegistry constructor
- .instance private
Instance Attribute Summary
- #collect rw
- #collect? ⇒ Boolean rw
- #queries readonly
- #reset readonly
Constructor Details
.new ⇒ ExplainRegistry
# File 'activerecord/lib/active_record/explain_registry.rb', line 24
def initialize reset end
Class Method Details
.instance (private)
[ GitHub ]# File 'activerecord/lib/active_record/explain_registry.rb', line 16
def instance ActiveSupport::IsolatedExecutionState[:active_record_explain_registry] ||= new end