From 64e78c0911a6e21dcb5fbdf0c7d2fa91fed23dcf Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Tue, 26 Nov 2013 08:43:17 -0300 Subject: [PATCH] Do not cache context content block --- plugins/context_content/lib/context_content_block.rb | 4 ++++ plugins/context_content/test/unit/context_content_block_test.rb | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/plugins/context_content/lib/context_content_block.rb b/plugins/context_content/lib/context_content_block.rb index 685fc6a..9b35a64 100644 --- a/plugins/context_content/lib/context_content_block.rb +++ b/plugins/context_content/lib/context_content_block.rb @@ -88,4 +88,8 @@ class ContextContentBlock < Block end end + def cacheable? + false + end + end diff --git a/plugins/context_content/test/unit/context_content_block_test.rb b/plugins/context_content/test/unit/context_content_block_test.rb index e7cc988..f43d031 100644 --- a/plugins/context_content/test/unit/context_content_block_test.rb +++ b/plugins/context_content/test/unit/context_content_block_test.rb @@ -171,4 +171,8 @@ class ContextContentBlockTest < ActiveSupport::TestCase assert_equal profile, block.profile end + should 'not be cacheable' do + assert !@block.cacheable? + end + end -- libgit2 0.21.2