Skip to content

Commit 6f18633

Browse files
committed
add check before N+1 notification publish to prevent poly association with nil type to be include
1 parent 41abfe4 commit 6f18633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jit_preloader/active_record/associations/singular_association.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def load_target
2525
end
2626
end
2727
end
28-
28+
2929
private def not_a_polymorphic_association_with_missing_type
3030
!(self.is_a?(ActiveRecord::Associations::BelongsToPolymorphicAssociation) && self.klass.nil?)
3131
end

0 commit comments

Comments
 (0)