Commit 57cce0f12edbc8322a39440c5684ec24c3537369
1 parent
32c0459c
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
@@ -124,7 +124,7 @@ class PairwisePlugin::QuestionsGroupListBlock < Block | @@ -124,7 +124,7 @@ class PairwisePlugin::QuestionsGroupListBlock < Block | ||
124 | true | 124 | true |
125 | end | 125 | end |
126 | 126 | ||
127 | - def cache_key_with_person(params = {}, user = nil, language = 'en') | 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 && created_by == user ? "-#{user.identifier}" : '') |
129 | end | 129 | end |
130 | alias_method_chain :cache_key, :person | 130 | alias_method_chain :cache_key, :person |