Commit cb1207af authored by Nick Thomas's avatar Nick Thomas

Swap a before_save call with a before_create/before_update pair to avoid a...

Swap a before_save call with a before_create/before_update pair to avoid a confict with elasticsearch-model
parent 04811cbb
......@@ -120,7 +120,9 @@ module CacheMarkdownField
attrs
end
before_save :refresh_markdown_cache!, if: :invalidated_markdown_cache?
# Using before_update here conflicts with elasticsearch-model somehow
before_create :refresh_markdown_cache!, if: :invalidated_markdown_cache?
before_update :refresh_markdown_cache!, if: :invalidated_markdown_cache?
end
class_methods do
......
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