mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-03-09 14:37:15 +00:00
14 lines
315 B
Ruby
14 lines
315 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseSolved::CategoryExtension
|
|
extend ActiveSupport::Concern
|
|
|
|
prepended { after_save :reset_accepted_cache, if: -> { SiteSetting.solved_enabled? } }
|
|
|
|
private
|
|
|
|
def reset_accepted_cache
|
|
::DiscourseSolved::AcceptedAnswerCache.reset_accepted_answer_cache
|
|
end
|
|
end
|