1
0

admin_mailer.rb 404 B

123456789101112131415
  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