Skip to content

Commit 4511a9c

Browse files
authored
Merge pull request #162 from kbrock/preloader_fixes
pass all parameters to preloader children
2 parents fd94e7c + 46ea0af commit 4511a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/virtual_attributes/virtual_fields.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def call
161161

162162
Array.wrap(klass_associations).each do |klass_association|
163163
# this calls back into itself, but it will take the short circuit
164-
Preloader.new(:records => klass_records, :associations => klass_association, :scope => scope).call
164+
Preloader.new(:records => klass_records, :associations => klass_association, :scope => scope, :available_records => @available_records, :associate_by_default => @associate_by_default).call
165165
end
166166
end
167167
end

0 commit comments

Comments
 (0)