From 0b32beadf5b0f5519c7d80fa72dd43358fb2588e Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Thu, 26 Feb 2015 17:23:22 +0100 Subject: [ci skip] Add changelog entry for #18948. --- actionview/CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'actionview') 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. -- cgit v1.2.3