Add an event prefix named after the model now that events are generic

This commit is contained in:
Jorge Manrubia
2025-04-24 13:20:09 +02:00
parent b746987712
commit 18cc24e1d3
12 changed files with 64 additions and 60 deletions
+3 -3
View File
@@ -5,11 +5,11 @@ class Notifier::EventNotifier < Notifier
private
def recipients
case source.action
when "assigned"
when "card_assigned"
source.assignees.excluding(source.collection.access_only_users)
when "published"
when "card_published"
watchers_and_subscribers(include_only_watching: true).without(creator, *card.mentionees)
when "commented"
when "card_commented"
watchers_and_subscribers.without(creator, *source.comment.mentionees)
else
watchers_and_subscribers.without(creator)