rails/rails — Issue #4388: AR::Relation#where_values_hashs doesn't include date ranges
Author: melvinram
Created: 2012-01-09 02:06:51+00:00
State: open

Here's how to replicate problem:

```
$ rails new Cars
$ rails g scaffold Car manufacture_date:date make:string model:string
$ rake db:migrate
$ rails c
> Car.where(:manufacture_date => Date.today).where_values_hash
=> {:manufacture_date=>Sun, 08 Jan 2012}
> Car.where(:manufacture_date => (Date.yesterday..Date.today)).where_values_hash
=> {}
```