You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
Have a handy pattern you've adopted that showcases how Squeel can make your code more readable, or allow you to do things that you couldn't easily do with SQL strings? Put it here. To start things off, a sample from the README.
Arbitrary-length ORed conditions against a single column
In standard ActiveRecord, to handle an arbitrary list of potential matches on a single database column, you might do:
Person.where((['name LIKE ?'] * names.size).join(' OR '), *names)