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.



39
40
41
# File 'activerecord/lib/active_record/relation/record_fetch_warning.rb', line 39

def initialize
  @queries = []
end

Instance Attribute Details

#queriesObject (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

#resetObject



43
44
45
# File 'activerecord/lib/active_record/relation/record_fetch_warning.rb', line 43

def reset
  @queries.clear
end