aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-02-26 17:23:22 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-02-26 17:23:22 +0100
commit0b32beadf5b0f5519c7d80fa72dd43358fb2588e (patch)
tree43686aefda2eaa15ece01807e5018b17ca4a1016 /actionview
parentb940e9feeaeadf1f743d6d1ffb3c5967599186c9 (diff)
downloadrails-0b32beadf5b0f5519c7d80fa72dd43358fb2588e.tar.gz
rails-0b32beadf5b0f5519c7d80fa72dd43358fb2588e.tar.bz2
rails-0b32beadf5b0f5519c7d80fa72dd43358fb2588e.zip
[ci skip] Add changelog entry for #18948.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/CHANGELOG.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md
index 86e20ad202..8f47171e62 100644
--- a/actionview/CHANGELOG.md
+++ b/actionview/CHANGELOG.md
@@ -1,3 +1,23 @@
+* Collection rendering automatically caches and fetches multiple partials.
+
+ Collections rendered as:
+
+ ```ruby
+ <%= render @notifications %>
+ <%= render partial: 'notifications/notification', collection: @notifications, as: :notification %>
+ ```
+
+ will now read several partials from cache at once, if the template starts with a cache call:
+
+ ```ruby
+ # notifications/_notification.html.erb
+ <% cache notification do %>
+ <%# ... %>
+ <% end %>
+ ```
+
+ *Kasper Timm Hansen*
+
* Fixed a dependency tracker bug that caused template dependencies not
count layouts as dependencies for partials.