Sha256: 736c5962dafb34d03534e0f34efa00e968c3f090ec762d47b693161c47ae4749
Contents?: true
Size: 554 Bytes
Versions: 25
Compression:
Stored size: 554 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, token, reason, user) @user = user @organization = user.organization @token = token @reason = reason @admin = admin mail(to: admin.email, subject: I18n.t( "decidim.user_report_mailer.notify.subject", organization_name: @organization.name, reason: @reason, token: @token )) end end end
Version data entries
25 entries across 25 versions & 1 rubygems