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

Version Path
decidim-core-0.27.9 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.8 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.7 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.6 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.5 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.4 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.3 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.2 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.1 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.0 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.0.rc2 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.27.0.rc1 app/mailers/decidim/block_user_mailer.rb