rails/rails — pull request #9258 by wangjohn (2013-02-12 05:37:29+00:00)
Title: Raising an error when query methods have blank arguments.

Currently, whenever an activerecord query is included with a nil or nil-like object, no argument error is given. For instance:

Posts.limit().all = Posts.all

That relation is completely useless when there are blank-like arguments. For methods which this doesn't make sense for, I'm adding checks which will raise an ArgumentError.