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

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

Overview

:startdoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeQueryRegistry

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

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

#resetObject



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

def reset
  @queries.clear
end