Commit 7f381461 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '34698-fix-stubbing-cached-markdown-fields' into 'master'

Fix stubbing attributes alongside cache_markdown_field

Closes #34698

See merge request !12661
parents 050eae8c 6d63d766
......@@ -78,7 +78,7 @@ module CacheMarkdownField
def cached_html_up_to_date?(markdown_field)
html_field = cached_markdown_fields.html_field(markdown_field)
cached = !cached_html_for(markdown_field).nil? && !__send__(markdown_field).nil?
cached = cached_html_for(markdown_field).present? && __send__(markdown_field).present?
return false unless cached
markdown_changed = attribute_changed?(markdown_field) || false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment