rails/rails — pull request #9232 by robertomiranda (2013-02-09 17:18:59+00:00)
Title: Use IN operator like Arel for empty hash in where clause

Change for be more near to the sql generated by Arel, would be easier doing grep in the Rails logs with this patch.

Currently rails is generating something like this
```ruby
User.where(id: {})
User Load (0.1ms) SELECT "users".* FROM "users" WHERE (1 = 2)
```
Arel use '1=0' instead of '1=2' https://github.com/rails/arel/commit/d3a8fa952792c284eb63a91e36a593683ad76b93