Sha256: 7d27afaad0d23d0294d34bd26837168e599cbf73a243c4ad37c28b0f8da155d8

Contents?: true

Size: 552 Bytes

Versions: 25

Compression:

Stored size: 552 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)
      @user = user
      @organization = user.organization
      @justification = justification
      mail(
        to: user.email,
        subject: I18n.t(
          "decidim.block_user_mailer.notify.subject",
          organization_name: @organization.name,
          justification: @justification
        )
      )
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-core-0.26.10 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.9 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.8 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.7 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.5 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.4 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.3 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.2 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.1 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.0 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.0.rc2 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.26.0.rc1 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.25.2 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.25.1 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.25.0 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.25.0.rc4 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.25.0.rc3 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.25.0.rc2 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.25.0.rc1 app/mailers/decidim/block_user_mailer.rb
decidim-core-0.24.3 app/mailers/decidim/block_user_mailer.rb