rails/jbuilder — pull request #92 by cgunther (2013-01-10 22:19:42+00:00)
Title: Support collections that are not Enumerable

ActiveRecord Relations are not `Enumerable`, however do respond to `#map`, so checking that the value responds to `#map` rather than being an `Enumerable` to prevent having to manually convert relations to arrays via `#to_a` before passing to Jbuilder.

Fixes a regression introduced at 74d78bf and adds tests for this explicit case.