All checks were successful
Run unit tests / copyright_notice (pull_request) Successful in 1m25s
Run unit tests / rubocop (pull_request) Successful in 1m46s
Run unit tests / check-licenses (pull_request) Successful in 2m9s
Run unit tests / unit_tests (pull_request) Successful in 2m56s
Run unit tests / build-static-assets (pull_request) Successful in 18m42s
19 lines
470 B
Ruby
19 lines
470 B
Ruby
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
|
|
|
|
# frozen_string_literal: true
|
|
|
|
class AdminMailer < ApplicationMailer
|
|
def attendance_change_email
|
|
@guest = Guest.find(params[:guest_id])
|
|
|
|
mail(
|
|
to: @guest.wedding.users.pluck(:email),
|
|
subject: I18n.t(
|
|
'admin_mailer.attendance_change_email.subject',
|
|
name: @guest.name,
|
|
status: I18n.t("active_record.attributes.guest/status.#{@guest.status}")
|
|
)
|
|
)
|
|
end
|
|
end
|