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