Hacker News new | ask | show | jobs
by sudhirj 4415 days ago
Is there any way to use the OR clause in a Rails SQL query without dropping down to Arel? Can't seem to find a way.
1 comments

Programatically, I mean. For instance, I can call `where` multiple times in a loop to chain AND clauses.
Not chainably, out of the box, though you can abuse build_where to do this and join with strings easily enough.