Fix deprecation warning in Rails 4.x

Following pull request #255, I suggest this change to make the fix backward-compatible with Rails 4.0 too.
`where(nil)` seems to be the correct substitute of `scoped`, without raising the deprecation warning.
All the tests are working fine under Rails 3.x and I tested on a production application with success.