trabajo-afectivo/app/models/concerns/checks_kb_client_visibility.rb

18 lines
363 B
Ruby
Raw Normal View History

# 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