Files
fizzy/app/models/notifier/comment_event_notifier.rb
T
Jorge Manrubia 40368032f2 Split notifiers for comments and cards
This lets us remove the annoying if to check the card
2025-04-24 15:19:42 +02:00

13 lines
256 B
Ruby

class Notifier::CommentEventNotifier < Notifier
delegate :creator, to: :source
private
def recipients
card.watchers_and_subscribers.without(creator, *source.eventable.mentionees)
end
def card
source.eventable.card
end
end