1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

9 commits

Author SHA1 Message Date
Eugene Gilburg
348de3a06e marking private methods which dont work if called on their own anyways 2014-07-18 20:54:30 -07:00
Eugene Gilburg
38117adfe3 small refactors to actionview renderers 2014-07-18 20:54:03 -07:00
Rafael Mendonça França
d4df7ce7b3 Fix typo on the variable name 2014-07-16 14:59:55 -03:00
Rafael Mendonça França
7dc0f3fc8d Document the PartialIteration object 2014-07-16 14:54:23 -03:00
Rafael Mendonça França
9290fc5ce2 Build only one PartialIteration object for loop 2014-07-16 14:54:22 -03:00
Rafael Mendonça França
9830ebbeaf No need to have a file to PartialIteration class
This class is only used on the PartialRenderer.
2014-07-16 14:50:51 -03:00
Joel Junström
1f5b360466 Added PartialIteration class used when rendering collections
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]
2014-07-16 14:50:51 -03:00
Mac Martine
6251eb992f Improve readability of sentence in partial-renderer docs [ci skip] 2013-11-19 15:46:00 -08:00
Piotr Sarnacki
0d6e8edc2a Move actionpack/lib/action_view* into actionview/lib 2013-06-20 17:23:15 +02:00
Renamed from actionpack/lib/action_view/renderer/partial_renderer.rb (Browse further)