`ActiveRecord::StrictLoadingViolationError` is not raised when loading polymorphic relations. · Issue #44906 · rails/rails

Steps to reproduce After performing strict_loading! on a model with polymorphic relationships, loading the related model raises an ArgumentError. However, it seems to me that ActiveRecord::StrictLo...