[ci skip] Add changelog entry for #18948.
This commit is contained in:
parent
b940e9feea
commit
0b32beadf5
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user