Use IN operator like arel for empty hash in where clause