Class: ActiveRecord::Relation::RecordFetchWarning::QueryRegistry

Inherits:
Object
  • Object
show all
Extended by:
ActiveSupport::PerThreadRegistry
Defined in:
activerecord/lib/active_record/relation/record_fetch_warning.rb

Overview

:startdoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ActiveSupport::PerThreadRegistry

extended, instance

Constructor Details

#initializeQueryRegistry

Returns a new instance of QueryRegistry.


37
38
39
# File 'activerecord/lib/active_record/relation/record_fetch_warning.rb', line 37

def initialize
  @queries = []
end

Instance Attribute Details

#queriesObject (readonly)

Returns the value of attribute queries


35
36
37
# File 'activerecord/lib/active_record/relation/record_fetch_warning.rb', line 35

def queries
  @queries
end

Instance Method Details

#resetObject


41
42
43
# File 'activerecord/lib/active_record/relation/record_fetch_warning.rb', line 41

def reset
  @queries.clear
end