This repository has been archived by the owner on Nov 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Regression in polymorphic associations #37
Comments
2 tasks
Thanks for the issue @rzane, are you seeing issues under Rails 5.2 with this? The old SQL should continue to work, shouldn't it? |
Yeah, this issue only affects Active Record 5.2. In 5.2, the query will be missing the This is definitely an issue, because imagine how that query might behave if the notable table looked like this:
|
@seanfcarroll any chance of having this issue fixed sometime soon? Currently this is the only issue that prevents me from upgrading my project to Rails 5.2. Thanks. |
@octavpo You should use Ransack 2 which is not using polyamorous anymore and supports Rails 5.2 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
The text was updated successfully, but these errors were encountered: