checks_kb_client_visibility.rb 363 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module ChecksKbClientVisibility
  3. extend ActiveSupport::Concern
  4. included do
  5. after_commit :notify_kb_client_visibility
  6. end
  7. private
  8. def notify_kb_client_visibility
  9. return if self.class.notify_kb_clients_suspend?
  10. ChecksKbClientVisibilityJob.perform_later
  11. end
  12. end