Deliver emails for bundled notifications (initial WIP)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user