Class: Workarea::StatusReporter

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/workarea/status_reporter.rb

Instance Method Summary collapse

Instance Method Details

#performObject



5
6
7
8
# File 'app/workers/workarea/status_reporter.rb', line 5

def perform(*)
  users = User.status_email_recipients.to_a
  Admin::StatusReportMailer.report_to_many(users).each(&:deliver_now)
end