I have this query that I want to reduce down if possible:
@orders_in_progress = user.orders.where("state = ? OR state = ? OR state = ?, "Waiting for Payment Authorization", "Paid", "Shipped")
What I'm looking for is something like:
@orders_in_progress = user.orders.where("state = ?", "Waiting for Payment Authorization" || "Paid" || "Shipped)
Also, I'm a little confused on the terminology here - is this "an ActiveRecord query with multiple conditions for an element"?