Class: Course::Assessment::ClosingReminderJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/course/assessment/closing_reminder_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(assessment, token) ⇒ Object (protected)


9
10
11
12
13
14
# File 'app/jobs/course/assessment/closing_reminder_job.rb', line 9

def perform(assessment, token)
  instance = Course.unscoped { assessment.course.instance }
  ActsAsTenant.with_tenant(instance) do
    Course::Assessment::ReminderService.closing_reminder(assessment, token)
  end
end