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

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

Overview

:startdoc:

Instance Method Summary collapse

Instance Method Details

#queriesObject



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

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

#resetObject



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

def reset
  queries.clear
end