40368032f2
This lets us remove the annoying if to check the card
13 lines
256 B
Ruby
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
|