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.

15 lines
404 B

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