Commit 3c5c557e0839cfd18720e8dbd3cd2e76f8f209f8
1 parent
57cce0f1
Exists in
master
Fix block cache key
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/pairwise_plugin/questions_group_list_block.rb
| ... | ... | @@ -125,7 +125,7 @@ class PairwisePlugin::QuestionsGroupListBlock < Block |
| 125 | 125 | end |
| 126 | 126 | |
| 127 | 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 | 129 | end |
| 130 | 130 | alias_method_chain :cache_key, :person |
| 131 | 131 | ... | ... |