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.
39 40 41 |
# File '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 'lib/active_record/relation/record_fetch_warning.rb', line 37 def queries @queries end |
Instance Method Details
#reset ⇒ Object
43 44 45 |
# File 'lib/active_record/relation/record_fetch_warning.rb', line 43 def reset @queries.clear end |