Commit 3c5c557e0839cfd18720e8dbd3cd2e76f8f209f8

Authored by Victor Costa
1 parent 57cce0f1
Exists in master

Fix block cache key

lib/pairwise_plugin/questions_group_list_block.rb
@@ -125,7 +125,7 @@ class PairwisePlugin::QuestionsGroupListBlock < Block @@ -125,7 +125,7 @@ class PairwisePlugin::QuestionsGroupListBlock < Block
125 end 125 end
126 126
127 def cache_key_with_person(language = 'en', user=nil) 127 def cache_key_with_person(language = 'en', user=nil)
128 - cache_key_without_person + (user && created_by == user ? "-#{user.identifier}" : '') 128 + cache_key_without_person + (user.present? ? "-#{user.identifier}" : '')
129 end 129 end
130 alias_method_chain :cache_key, :person 130 alias_method_chain :cache_key, :person
131 131