diaspora/app/workers/mail/notifier_base.rb
2017-09-17 19:29:15 +02:00

13 lines
288 B
Ruby

# frozen_string_literal: true
module Workers
module Mail
class NotifierBase < Base
sidekiq_options queue: :low
def perform(*args)
Notifier.send_notification(self.class.name.gsub("Workers::Mail::", "").underscore, *args).deliver_now
end
end
end
end