Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2019-06-05 15:06:37 +0300
committerPatrick Bajao <ebajao@gitlab.com>2019-06-05 15:06:41 +0300
commitde21320db21e63db59cbba870ac23624a298214d (patch)
tree6521d0d8a0708524dba22dca217050a489150588 /lib/gitlab/markdown_cache
parent56d52340da0f8f15179b83f1206544a2590c22ff (diff)
Remove requirement for id for #markdown_cache_key
It's not needed anymore as we require `#cache_key` instead.
Diffstat (limited to 'lib/gitlab/markdown_cache')
-rw-r--r--lib/gitlab/markdown_cache/redis/store.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/markdown_cache/redis/store.rb b/lib/gitlab/markdown_cache/redis/store.rb
index 2d4a89d9f1c..0f954404808 100644
--- a/lib/gitlab/markdown_cache/redis/store.rb
+++ b/lib/gitlab/markdown_cache/redis/store.rb
@@ -43,9 +43,9 @@ module Gitlab
end
def markdown_cache_key
- unless @subject.respond_to?(:id)
+ unless @subject.respond_to?(:cache_key)
raise Gitlab::MarkdownCache::UnsupportedClassError,
- "This class has no id to use for caching"
+ "This class has no cache_key to use for caching"
end
"markdown_cache:#{@subject.cache_key}"