You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
374 B

  1. # frozen_string_literal: true
  2. class AdminMailer < ApplicationMailer
  3. def new_report(recipient, report)
  4. @report = report
  5. @me = recipient
  6. @instance = Rails.configuration.x.local_domain
  7. locale_for_account(@me) do
  8. mail to: @me.user_email, subject: I18n.t('admin_mailer.new_report.subject', instance: @instance, id: @report.id)
  9. end
  10. end
  11. end