Deliver emails for bundled notifications (initial WIP)

This commit is contained in:
Jorge Manrubia
2025-08-26 13:22:22 +02:00
parent 218519d075
commit cfafc54a81
16 changed files with 271 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
class Notification::BundleMailer < ApplicationMailer
def notification(bundle)
@bundle = bundle
@notifications = bundle.notifications
mail(
to: bundle.user.email_address,
subject: "You have #{@notifications.count} notifications"
)
end
end