rails/rails — pull request #4609 by xuanxu (2012-01-23 02:25:33+00:00)
Title: none query method

Here is a ```none``` method to return an empty relation from a AR model (i.e Post.none), as previously discussed here: https://github.com/rails/rails/pull/4548

It prevents the query hitting the database, is chainable and makes any subsequent relation empty, so Post.none.where(:author_id => 1) is also empty.