fix where_values_hash patch to work with rails4.