[ad_1]
I have an array like this
arr = %w[android ios]
and I want to use these values in Where clause in a query like below:
SELECT * FROM controls
WHERE company_id = '12345' AND (ios > 13 OR android > 14)
where the fields inside ( ) are the values of array .. so if i have only one value in array it would be
WHERE company_id = '12345' AND (ios > 13)
for example
Is it possible using Ruby on rails ActiveRecord?
[ad_2]