edge badge
Methods
N
P
R
Attributes
[R] owners
[R] reflection
Class Public methods
new(klass, owners, reflection, preload_scope)
# File activerecord/lib/active_record/associations/preloader.rb, line 155
def initialize(klass, owners, reflection, preload_scope)
  @owners = owners
  @reflection = reflection
end
Instance Public methods
preloaded_records()
# File activerecord/lib/active_record/associations/preloader.rb, line 162
def preloaded_records
  owners.flat_map { |owner| owner.association(reflection.name).target }
end
run(preloader)
# File activerecord/lib/active_record/associations/preloader.rb, line 160
def run(preloader); end