Re:Scuttle – SQL and Arel Editor
by yxhuvud on Monday May 12, 2014 @09:53AM
(#7732650)
4: Generating queries that are composable with other queries.
[ Parent
| on HN ]
Re:Scuttle – SQL and Arel Editor
by emiller829 on Monday May 12, 2014 @10:33AM
(#7732881)
If you really must have this, you can get it already with Relation#merge. If you're just referring to using one query as a subquery in another, this is available in ActiveRecord directly without needing to drop to Arel. In fact, unless you're meaning something very different than what I am interpreting, there's nothing Arel's buying you over ActiveRecord::Relation in this regard.