Class: ActiveRecord::Relation::RecordFetchWarning::QueryRegistry
- Extended by:
- ActiveSupport::PerThreadRegistry
- Defined in:
- activerecord/lib/active_record/relation/record_fetch_warning.rb
Overview
:startdoc:
Instance Attribute Summary collapse
-
#queries ⇒ Object
readonly
Returns the value of attribute queries.
Instance Method Summary collapse
-
#initialize ⇒ QueryRegistry
constructor
A new instance of QueryRegistry.
- #reset ⇒ Object
Methods included from ActiveSupport::PerThreadRegistry
Constructor Details
#initialize ⇒ QueryRegistry
Returns a new instance of QueryRegistry.
39 40 41 |
# File 'activerecord/lib/active_record/relation/record_fetch_warning.rb', line 39 def initialize @queries = [] end |
Instance Attribute Details
#queries ⇒ Object (readonly)
Returns the value of attribute queries
37 38 39 |
# File 'activerecord/lib/active_record/relation/record_fetch_warning.rb', line 37 def queries @queries end |
Instance Method Details
#reset ⇒ Object
43 44 45 |
# File 'activerecord/lib/active_record/relation/record_fetch_warning.rb', line 43 def reset @queries.clear end |