18 lines
363 B
Ruby
18 lines
363 B
Ruby
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
||
|
|
||
|
module ChecksKbClientVisibility
|
||
|
extend ActiveSupport::Concern
|
||
|
|
||
|
included do
|
||
|
after_commit :notify_kb_client_visibility
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def notify_kb_client_visibility
|
||
|
return if self.class.notify_kb_clients_suspend?
|
||
|
|
||
|
ChecksKbClientVisibilityJob.perform_later
|
||
|
end
|
||
|
end
|