Module: ActiveRecord::Relation::RecordFetchWarning::QueryRegistry

Extended by:
QueryRegistry
Included in:
QueryRegistry
Defined in:
activerecord/lib/active_record/relation/record_fetch_warning.rb

Overview

:startdoc:

Instance Method Summary collapse

Instance Method Details

#queriesObject



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

def queries
  ActiveSupport::IsolatedExecutionState[:active_record_query_registry] ||= []
end

#resetObject



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

def reset
  queries.clear
end