rails/rails — pull request #8365 by claudiob (2012-11-29 07:26:59+00:00)
Title: Allow Relation.where with no arguments to be chained with new query methods `not`, `like`, and `not_like`

Similarly to https://github.com/rails/rails/pull/8332 this commit closes #5950 by making available three new methods `not`, `like`, and `not_like` that can be chained with a Relation.where with no (or nil) arguments.

The difference is that this commit follows the suggestion by José Valim https://github.com/rails/rails/pull/8332#issuecomment-10754953 to use a class and a builder, rather than a mixin, to implement WhereChain.