Class: Decidim::Conferences::Admin::SendConferenceDiplomaJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- Decidim::Conferences::Admin::SendConferenceDiplomaJob
- Defined in:
- app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(conference) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb', line 9 def perform(conference) confirmed_registrations = conference.conference_registrations.confirmed return unless confirmed_registrations.any? confirmed_registrations.each do |registration_confirmed| SendConferenceDiplomaMailer.diploma(conference, registration_confirmed.user).deliver_later end end |