Pass ActiveRecord::Relation to use sub-queries
We don't need to pluck the set of ids into memory. We can pass the ActiveRecord::Relation and use sub-queries.
Showing
Please register or sign in to comment
We don't need to pluck the set of ids into memory. We can pass the ActiveRecord::Relation and use sub-queries.