Sha256: e74ed8776fe3f8bff89b94645c1bcaf9dff2d9bcd1108fac6a1b5f95558718ff
Contents?: true
Size: 604 Bytes
Versions: 10
Compression:
Stored size: 604 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(@organization), justification: @justification ) mail(to: user.email, subject:) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems