Method: NotificationService#send_new_note_notifications

Defined in:
app/services/notification_service.rb

#send_new_note_notifications(note) ⇒ Object (private)



884
885
886
887
888
889
890
891
# File 'app/services/notification_service.rb', line 884

def send_new_note_notifications(note)
  notify_method = :"note_#{note.noteable_ability_name}_email"

  recipients = NotificationRecipients::BuildService.build_new_note_recipients(note)
  recipients.each do |recipient|
    mailer.send(notify_method, recipient.user.id, note.id, recipient.reason).deliver_later
  end
end