aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-02-24 16:20:38 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2016-02-24 16:20:38 +0100
commit355346c196daa446e89916df822e9d5d17605435 (patch)
treee950c578c1b9be84c59640047ae46f1a93b9ab87 /actionview
parent177e1bb955dc117c305b8afcbc6c327279da304a (diff)
downloadrails-355346c196daa446e89916df822e9d5d17605435.tar.gz
rails-355346c196daa446e89916df822e9d5d17605435.tar.bz2
rails-355346c196daa446e89916df822e9d5d17605435.zip
[ci skip] Move collection caching changelog entry.
We changed this in beta2, and only editing the original entry means people can't see that it was significantly changed.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/CHANGELOG.md50
1 files changed, 25 insertions, 25 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md
index bd7ce14e04..465c646ac7 100644
--- a/actionview/CHANGELOG.md
+++ b/actionview/CHANGELOG.md
@@ -1,3 +1,28 @@
+* Collection rendering can cache and fetch multiple partials at once.
+
+ Collections rendered as:
+
+ ```ruby
+ <%= render partial: 'notifications/notification', collection: @notifications, as: :notification, cached: true %>
+ ```
+
+ will read several partials from cache at once. The templates in the collection
+ that haven't been cached already will automatically be written to cache. Works
+ great alongside individual template fragment caching. For instance if the
+ template the collection renders is cached like:
+
+ ```ruby
+ # notifications/_notification.html.erb
+ <% cache notification do %>
+ <%# ... %>
+ <% end %>
+ ```
+
+ Then any collection renders shares that cache when attempting to read multiple
+ ones at once.
+
+ *Kasper Timm Hansen*
+
* Add support for nested hashes/arrays to `:params` option of `button_to` helper.
*James Coleman*
@@ -197,31 +222,6 @@
*Ulisses Almeida*
-* Collection rendering can cache and fetch multiple partials at once.
-
- Collections rendered as:
-
- ```ruby
- <%= render partial: 'notifications/notification', collection: @notifications, as: :notification, cached: true %>
- ```
-
- will read several partials from cache at once. The templates in the collection
- that haven't been cached already will automatically be written to cache. Works
- great alongside individual template fragment caching. For instance if the
- template the collection renders is cached like:
-
- ```ruby
- # notifications/_notification.html.erb
- <% cache notification do %>
- <%# ... %>
- <% end %>
- ```
-
- Then any collection renders shares that cache when attempting to read multiple
- ones at once.
-
- *Kasper Timm Hansen*
-
* Fixed a dependency tracker bug that caused template dependencies not
count layouts as dependencies for partials.