Class: ActiveRecord::Relation::RecordFetchWarning::QueryRegistry
- Inherits:
-
Object
- Object
- ActiveRecord::Relation::RecordFetchWarning::QueryRegistry
- Extended by:
- ActiveSupport::PerThreadRegistry
- Defined in:
- 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
Constructor Details
#initialize ⇒ QueryRegistry
Returns a new instance of QueryRegistry.
37 38 39 |
# File 'lib/active_record/relation/record_fetch_warning.rb', line 37 def initialize @queries = [] end |
Instance Attribute Details
#queries ⇒ Object (readonly)
Returns the value of attribute queries.
35 36 37 |
# File 'lib/active_record/relation/record_fetch_warning.rb', line 35 def queries @queries end |
Instance Method Details
#reset ⇒ Object
41 42 43 |
# File 'lib/active_record/relation/record_fetch_warning.rb', line 41 def reset @queries.clear end |