You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use a scope with joins() doesn't include that join in the generated sql, be it directly, via named_scopes or via default_scopes.
Below is a minimal example that reproduces this issue.
This is causing trouble because i need to scope the primary_marking based on an attribute from it's marking_code (there would be a .where(...) following the join
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails team are limited, and so we are asking for your help.
If you can still reproduce this error on the 5-2-stable branch or on master, please reply with all of the information you have about it in order to keep the issue open.
Thank you for all your contributions.
Trying to use a scope with
joins()
doesn't include that join in the generated sql, be it directly, via named_scopes or via default_scopes.Below is a minimal example that reproduces this issue.
This is causing trouble because i need to scope the primary_marking based on an attribute from it's marking_code (there would be a
.where(...)
following the joinSteps to reproduce
Expected behavior
Actual behavior
System configuration
Rails version: Rails 5.1.4
Ruby version: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
The text was updated successfully, but these errors were encountered: