I've noticed that in my updated app, subqueries are generated when I supply a relation in a regular where(): ``` Draft.where(id: Draft.limit(2)) # => SELECT "drafts".* FROM "drafts" WHERE "drafts"."id" IN (SELECT "drafts"."id" FROM "drafts" LIMIT 2) ``` This introduces a subquery instead of standard Rails array of ids: ``` # => SELECT "drafts".* FROM "drafts" WHERE "drafts"."id" IN (1,2) ``` IMO, Squeel should only work this kind of magic inside a where{} block.
I've noticed that in my updated app, subqueries are generated when I supply a relation in a regular where():
This introduces a subquery instead of standard Rails array of ids:
IMO, Squeel should only work this kind of magic inside a where{} block.