Adaptation of overriding of where_values_hash

Rails 4.0-stable added a parameter to the method `where_values_hash`