Hello, I have a desire to play around `ActiveRecord::PredicateBuilder` so 
it would unfold the foreign associations queries using nested queries, like 
this:

* `Parent.where(children: Child.first)` -> `Parent.where(id: 
Child.first.parent_id)`
* `Parent.where(children: Child.where(id: 1))` -> `Parent.where(id: 
Child.where(id: 1).select(:parent_id))`
* `Parent.where(children: [])` -> `Parent.where.not(id: 
Child.select(:parent_id))`

Is there any chance this feature could be accepted and supported?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to