rails/rails — pull request #6006 by carlosantoniodasilva (2012-04-27 01:19:46+00:00)
Title: Partial layout collection item

Pull request #5310 added the possibility to render layouts with collections. This patch allows access to the current object and object_counter being rendered inside the layout, the same way they are inside the partial.

Let me know if something needs to be improved. Thanks.

*ps: I'm working on some refactorings in PartialRenderer, that I'll be sending as a separate pull request.*