diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-02-15 20:34:18 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-02-20 20:07:50 +0100 |
commit | e56c63542780fe2fb804636a875f95cae08ab3f4 (patch) | |
tree | 770d129fff282d798e80779f6a44ff048fec1621 /actionview/test/actionpack/controller/render_test.rb | |
parent | 66a30dc3225589d8aba6c10fee7bfa68da444e49 (diff) | |
download | rails-e56c63542780fe2fb804636a875f95cae08ab3f4.tar.gz rails-e56c63542780fe2fb804636a875f95cae08ab3f4.tar.bz2 rails-e56c63542780fe2fb804636a875f95cae08ab3f4.zip |
Merge multi_fetch_fragments.
Makes caching a collection of template partials faster using `read_multi`
on the Rails cache store.
Some caching implementations have optimized `read_multi` so we don't have
to check in the cache store for every template.
Diffstat (limited to 'actionview/test/actionpack/controller/render_test.rb')
-rw-r--r-- | actionview/test/actionpack/controller/render_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionview/test/actionpack/controller/render_test.rb b/actionview/test/actionpack/controller/render_test.rb index fe4cf3688a..63ee5e14ec 100644 --- a/actionview/test/actionpack/controller/render_test.rb +++ b/actionview/test/actionpack/controller/render_test.rb @@ -31,6 +31,10 @@ class Customer < Struct.new(:name, :id) def persisted? id.present? end + + def cache_key + name.to_s + end end module Quiz |