Mark certain notifications as read/seen by default #465
-
I'm using The problem I run into now is that some special notifications only trigger a delivery, but are never shown on the notifications page. So these notifications should not be counted in Rather than changing the How can I can do this? I tried the code below, but it applies to the class StreakReminderNotifier < ApplicationNotifier
before_create do
self.seen_at = Time.zone.now
self.read_at = Time.zone.now
end
end |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
You can use
notification_methods
to inject code into the notification model.