We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a289545 + 9726cd9 commit 5013d28Copy full SHA for 5013d28
lib/active_record/virtual_attributes/virtual_fields.rb
@@ -159,7 +159,7 @@ def call
159
records_by_assoc.each do |klass_associations, klass_records|
160
next if klass_associations.blank?
161
162
- Array[klass_associations].each do |klass_association| # rubocop:disable Style/RedundantArrayConstructor
+ Array.wrap(klass_associations).each do |klass_association|
163
# this calls back into itself, but it will take the short circuit
164
Preloader.new(:records => klass_records, :associations => klass_association, :scope => scope).call
165
end
0 commit comments