diff --git a/lib/pairwise_plugin/questions_group_list_block.rb b/lib/pairwise_plugin/questions_group_list_block.rb index 887e52b..9ba51a9 100644 --- a/lib/pairwise_plugin/questions_group_list_block.rb +++ b/lib/pairwise_plugin/questions_group_list_block.rb @@ -125,7 +125,7 @@ class PairwisePlugin::QuestionsGroupListBlock < Block end def cache_key_with_person(language = 'en', user=nil) - cache_key_without_person + (user && created_by == user ? "-#{user.identifier}" : '') + cache_key_without_person + (user.present? ? "-#{user.identifier}" : '') end alias_method_chain :cache_key, :person -- libgit2 0.21.2