-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for STI scoping across leaves #16775
Conversation
@miq-bot assign @gmcculloug |
@Fryguy I think this's what you wanted. |
@d-m-u I think you could probably DRY up all the |
c0f4a9e
to
e948ab2
Compare
This pull request is not mergeable. Please rebase and repush. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request is not mergeable. Please rebase and repush. |
@d-m-u Please rebase |
Checked commit d-m-u@ad0f581 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Adding gaprindashvili/yes since this is needed to backport #17544 to gaprindashvili |
Fix for STI scoping across leaves (cherry picked from commit c992bac)
Gaprindashvili backport details:
|
This addresses a concern that classes using STI do not work with the unique_within_region validation (that currently uses record.class). The validation may not properly scope across leaf classes. The suggestion was to use record.class.base_class instead.
😭
per #16739