class method
self.new
Ruby on Rails 7.0.10
Since v7.0.10 Last seen in v7.0.10Signature
self.new(loaders, loader_query)
No documentation comment.
Parameters
-
loadersreq -
loader_queryreq
Source
# File activerecord/lib/active_record/associations/preloader/association.rb, line 44
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
Defined in activerecord/lib/active_record/associations/preloader/association.rb line 44
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Associations::Preloader::Association::LoaderRecords