Hello, I would like to play around ActiveRecord::PredicateBuilder to make 
it unfold foreign association queries in `where` method into 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 feature like this would be accepted?

-- 
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