Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise StrictLoadingViolationError with polymorphic relation violations
Performing strict_loading! on a model with a polymorphic association currently raises an ArgumentError because it attempts to look up the klass on the polymorphic association, which is not possible. The error message for StrictLoadingViolationError on models with polymorphic relationships should omit the klass for the association.
- Loading branch information
1 parent
1b884cf
commit 71828a4
Showing
4 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters