rails/rails — pull request #7698 by joeljunstrom (2012-09-19 09:19:12+00:00)
Title: Added PartialIteration object used when rendering collections

Based on the ideas in #5634 but refactored into an object as per the comments.

The iteration object is available as the local variable
"template_name_iteration" when rendering partials with collections.

It gives access to the +size+ of the collection beeing iterated over,
the current +index+ and two convinicence methods +first?+ and +last?+

For now the "template_name_counter" variable is kept but can be removed
if we do not need backwards combability.