Sha256: 4b3b5a4cf47d6ace2ff22a9d25136b561469e086c5146e8d274be6810875679c
Contents?: true
Size: 774 Bytes
Versions: 64
Compression:
Stored size: 774 Bytes
Contents
# frozen_string_literal: true module Decidim module Accountability # This mailer sends a notification email containing the result of importing a # CSV of results. class ImportMailer < Decidim::ApplicationMailer # Public: Sends a notification email with the result of a CSV import # of results. # # user - The user to be notified. # errors - The list of errors generated by the import # # Returns nothing. def import(user, errors) @user = user @organization = user.organization @errors = errors with_user(user) do mail(to: "#{user.name} <#{user.email}>", subject: I18n.t("decidim.accountability.import_mailer.import.subject")) end end end end end
Version data entries
64 entries across 64 versions & 1 rubygems