Sha256: d3f9b9bb9e743e77f276359c89549dd7e3dfb89bcf2d141e9b8e8e8f9a04de15
Contents?: true
Size: 585 Bytes
Versions: 10
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true module Decidim # A custom mailer to notify Decidim users # that they have been reported class UserReportMailer < ApplicationMailer def notify(admin, report) @report = report @admin = admin @organization = report.moderation.user.organization with_user(admin) do mail(to: admin.email, subject: I18n.t( "decidim.user_report_mailer.notify.subject", organization_name: organization_name(report.moderation.user.organization), reason: @report.reason )) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems