If I have a scope with a lambda and it takes an argument, depending on the value of the argument, I might know that there will not be any matches, but I still want to return
I think I prefer the way this looks to the other options:
scope :none, limit(0)
Leading to something like this:
scope :users, lambda { |ids| ids.present? ? where("user_id IN (?)", ids) : limit(0) }