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
I'd like for something like this to work: Document.joins(:user).where(users: { admin: true }).
This is probably quite difficult to achieve, since it's converted back to an SQL query by Arel under the hood. It's also worth noting that Arel isn't a stable interface, so it'll probably have some maintenance overhead. Not surprised if this doesn't get addressed, but is there a recommended way to phrase queries like this?
The text was updated successfully, but these errors were encountered:
I'd like for something like this to work:
Document.joins(:user).where(users: { admin: true })
.This is probably quite difficult to achieve, since it's converted back to an SQL query by Arel under the hood. It's also worth noting that Arel isn't a stable interface, so it'll probably have some maintenance overhead. Not surprised if this doesn't get addressed, but is there a recommended way to phrase queries like this?
The text was updated successfully, but these errors were encountered: