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

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