Class: Course::Announcement::OpeningReminderJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/course/announcement/opening_reminder_job.rb

Instance Method Summary collapse

Instance Method Details

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


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

def perform(user, announcement, token)
  instance = Course.unscoped { announcement.course.instance }
  ActsAsTenant.with_tenant(instance) do
    Course::Announcement::ReminderService.opening_reminder(user, announcement, token)
  end
end