rails/rails — pull request #8794 by bogdan (2013-01-07 09:03:02+00:00)
Title: Make AR::Relation include Enumerable

In this way Relation will gain more Array behaviors (like `as_json` method that is no longer required in Relation).
Also it delegates every method to `to_a` without `method_missing` which is faster.

A few tests need a change because `collect` without a block doesn't load the relation anymore. This seems ok.