I've just upgraded from 1.0.1 to 1.0.5 and come across the following change in behaviour when using an array of symbols like so:
Action.where(:action_type => [:create,:update])
SELECT "actions".* FROM "actions" WHERE "actions"."action_type" IN ('create', 'update')
SELECT "actions".* FROM "actions" WHERE "actions"."action_type" IN ("actions"."create", "actions"."update")
Could you advise if there is a way to use an array regardless of whether it contains symbols or strings?
This has been behavior for a while now. Not sure why you weren't seeing it in 1.0.1, but if you weren't, that was a bug.
See https://github.com/ernie/squeel/wiki/Common-issues (columns as values)
Thanks for the prompt reply Ernie