aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/partial_iteration_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Build only one PartialIteration object for loopRafael Mendonça França2014-07-161-5/+8
|
* No need to have a file to PartialIteration classRafael Mendonça França2014-07-161-3/+2
| | | | This class is only used on the PartialRenderer.
* Added PartialIteration class used when rendering collectionsJoel Junström2014-07-161-0/+31
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?+ "template_name_counter" variable is kept but is deprecated. [Joel Junström + Lucas Uyezu]