aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-16 14:40:50 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-16 14:54:23 -0300
commit03d77504be20fbd170a25e948f259ad4047d0d3e (patch)
treedd485677928ce0dcc16620ed2c5a0f5900f91596 /actionview/CHANGELOG.md
parent7dc0f3fc8d3160db3408ef5a20c43a7268c0cd8e (diff)
downloadrails-03d77504be20fbd170a25e948f259ad4047d0d3e.tar.gz
rails-03d77504be20fbd170a25e948f259ad4047d0d3e.tar.bz2
rails-03d77504be20fbd170a25e948f259ad4047d0d3e.zip
Add CHANGELOG entry for PartialIteration.
Closes #7698.
Diffstat (limited to 'actionview/CHANGELOG.md')
-rw-r--r--actionview/CHANGELOG.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md
index 3a55407491..f4a12360d7 100644
--- a/actionview/CHANGELOG.md
+++ b/actionview/CHANGELOG.md
@@ -1,3 +1,13 @@
+* Add `PartialIteration` object 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 being iterated over,
+ the current `index` and two convenience methods `first?` and `last?`.
+
+ *Joel Junström*, *Lucas Uyezu*
+
* Return an absolute instead of relative path from an asset url in the case
of the `asset_host` proc returning nil