Sha256: ea8b1ee0b637d48da59b2b202fa56e00df0f9ee7ba0141d48f118b19b0780b19

Contents?: true

Size: 567 Bytes

Versions: 12

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    module Admin
      class SendConferenceDiplomaJob < ApplicationJob
        queue_as :conference_diplomas

        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_now
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-conferences-0.21.0 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.20.1 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.20.0 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.19.1 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.18.1 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.19.0 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.17.2 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.18.0 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.17.1 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.16.1 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.17.0 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
decidim-conferences-0.16.0 app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb