Method: ActiveRecord::Associations::Preloader::Association::LoaderRecords#initialize
- Defined in:
- activerecord/lib/active_record/associations/preloader/association.rb
#initialize(loaders, loader_query) ⇒ LoaderRecords
Returns a new instance of LoaderRecords.
61 62 63 64 65 66 67 68 |
# File 'activerecord/lib/active_record/associations/preloader/association.rb', line 61 def initialize(loaders, loader_query) @loader_query = loader_query @loaders = loaders @keys_to_load = Set.new @already_loaded_records_by_key = {} populate_keys_to_load_and_already_loaded_records end |