Class: Course::Video::ClosingReminderJob

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

Instance Method Summary collapse

Instance Method Details

#perform(user, video, token) ⇒ Object (protected)


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

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