Sha256: f2eb2a4c13f014891c77b6e4adb5c21f22af697bcf54ce6b1da3bf1f78e6360e
Contents?: true
Size: 598 Bytes
Versions: 12
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true module Decidim # A custom mailer for Decidim so we can notify users # when their account was blocked class BlockUserMailer < ApplicationMailer def notify(user, justification) with_user(user) do @user = user @organization = user.organization @justification = justification subject = I18n.t( "decidim.block_user_mailer.notify.subject", organization_name: @organization.name, justification: @justification ) mail(to: user.email, subject: subject) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems