summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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}"