4 ms·
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.
by sudhirj 12y 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.
- sudhirj 12y agoProgramatically, I mean. For instance, I can call `where` multiple times in a loop to chain AND clauses.
- emiller829 12y agoNot chainably, out of the box, though you can abuse build_where to do this and join with strings easily enough.