rails/actionpack/test
Kasper Timm Hansen 11644fd0ce Collections automatically cache and fetch partials.
Collections can take advantage of `multi_read` if they render one template
and their partials begin with a cache call.

The cache call must correspond to either what the collections elements are
rendered as, or match the inferred name of the partial.

So with a notifications/_notification.html.erb template like:

```ruby
<% cache notification %>
  <%# ... %>
<% end %>
```

A collection would be able to use `multi_read` if rendered like:

```ruby
<%= render @notifications %>
<%= render partial: 'notifications/notification', collection: @notifications, as: :notification %>
```
2015-02-21 16:06:57 +01:00
..
abstract Merge pull request #11790 from printercu/patch-3 2015-02-12 15:39:17 -02:00
assertions Change all MiniTest to Minitest since, MiniTest namespace has been renamed to Minitest 2013-12-18 14:39:50 +05:30
controller Collections automatically cache and fetch partials. 2015-02-21 16:06:57 +01:00
dispatch lazily create the integration session 2015-02-12 12:04:23 -08:00
fixtures Collections automatically cache and fetch partials. 2015-02-21 16:06:57 +01:00
journey Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 onwards. 2015-02-03 20:51:40 +05:30
lib/controller Removing unused fake models 2014-09-07 22:51:14 -03:00
routing Remove deprecate *_path helpers in email views 2015-01-04 11:58:42 -03:00
tmp Use safe tmp dir 2009-08-13 21:03:25 -05:00
abstract_unit.rb Merge pull request #17862 from lucasmazza/lm-hide-action 2014-12-02 11:40:11 -02:00