Closed gravitystorm closed 1 year ago
Prefer .where(:foo => %w[abc cde]) vs .where("foo IN ('abc', 'cde')")
.where(:foo => %w[abc cde])
.where("foo IN ('abc', 'cde')")
I think there's two places where they still exist. https://github.com/openstreetmap/openstreetmap-website/commit/7f556f94f1d479346cbefb5cbeec0a6a0b7b8547 was a while ago.
https://github.com/openstreetmap/openstreetmap-website/pull/4136
Prefer
.where(:foo => %w[abc cde])
vs.where("foo IN ('abc', 'cde')")
I think there's two places where they still exist. https://github.com/openstreetmap/openstreetmap-website/commit/7f556f94f1d479346cbefb5cbeec0a6a0b7b8547 was a while ago.