-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
Regression in polymorphic associations in ActiveRecord 5.2 #902
Comments
No problem re: noise. Is it possible to create some failing tests on a branch? |
Sure, I'll see if I can come up with a reproduction case through the Ransack API. I use polyamorous for baby_squeel, and that's where I noticed the issue. Though, I'm pretty sure I was able to reproduce using ransack. |
I ran into this issue as well. I'm using ransack 2.1.1 which now includes the polyamorous code |
Closed due to inactivity. |
This issue only affects Active Record 5.2.
In Active Record < 5.2, polymorphic joins will include a condition on the
_type
column.In Active Record 5.2, the condition will not be included:
I created an issue on the polyamorous repo, but I figured more users are likely to see the issue here.
Sorry for the noise, here's the original issue: activerecord-hackery/polyamorous#37
The text was updated successfully, but these errors were encountered: