diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-15 22:47:44 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-20 16:54:32 +0100 |
commit | b4558c10fb8f5379ffe23860c9ad1ee7a227de44 (patch) | |
tree | e970d2796ba27d9d6d5ef7bf4a747103f69104d6 /railties/test/application | |
parent | 454bc1deab3b60f6b4cbe36227471ed40f4c38f9 (diff) | |
download | rails-b4558c10fb8f5379ffe23860c9ad1ee7a227de44.tar.gz rails-b4558c10fb8f5379ffe23860c9ad1ee7a227de44.tar.bz2 rails-b4558c10fb8f5379ffe23860c9ad1ee7a227de44.zip |
Make collection caching explicit.
Having collection caching that wraps templates and automatically tries
to infer if they are cachable proved to be too much of a hassle.
We'd rather have it be something you explicitly turn on.
This removes much of the code and docs to explain the previous automatic
behavior.
This change also removes scoped cache keys and passing cache_options.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/per_request_digest_cache_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/test/application/per_request_digest_cache_test.rb b/railties/test/application/per_request_digest_cache_test.rb index 210646c7c0..dfe3fc9354 100644 --- a/railties/test/application/per_request_digest_cache_test.rb +++ b/railties/test/application/per_request_digest_cache_test.rb @@ -29,6 +29,8 @@ class PerRequestDigestCacheTest < ActiveSupport::TestCase app_file 'app/controllers/customers_controller.rb', <<-RUBY class CustomersController < ApplicationController + self.perform_caching = true + def index render [ Customer.new('david', 1), Customer.new('dingus', 2) ] end |