I have a query that looks like this:
User.includes(:notifications).where({:type => 'Nice', :notifications => {:name =>'Weekly email'} })
How can I modify this query so that in the where, the :type can be ‘Nice’, ‘nice’, ‘nicely’, ‘good’ ?
How can I put an OR there?
You can pass an array in the condition to test several values:
It will generate an SQL request with an
INclause.