From 57cce0f12edbc8322a39440c5684ec24c3537369 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 22 Jun 2015 16:51:07 -0300 Subject: [PATCH] Fix block cache key --- lib/pairwise_plugin/questions_group_list_block.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pairwise_plugin/questions_group_list_block.rb b/lib/pairwise_plugin/questions_group_list_block.rb index 52acd6a..887e52b 100644 --- a/lib/pairwise_plugin/questions_group_list_block.rb +++ b/lib/pairwise_plugin/questions_group_list_block.rb @@ -124,7 +124,7 @@ class PairwisePlugin::QuestionsGroupListBlock < Block true end - def cache_key_with_person(params = {}, user = nil, language = 'en') + def cache_key_with_person(language = 'en', user=nil) cache_key_without_person + (user && created_by == user ? "-#{user.identifier}" : '') end alias_method_chain :cache_key, :person -- libgit2 0.21.2