fix where_values_hash patch to work with rails4.
Merge pull request #247 from shioyama/rails4

fix where_values_hash patch to work with rails4.