rails/rails — pull request #5809 by xuanxu (2012-04-11 13:31:53+00:00)
Title: Override AR::Relation methods in NullRelation.

So a NullRelation (Relation#none) is chainable with database methods, as discussed with @josevalim and @jonleighton here: rails/rails#5590