Notify new draft after dossier commit

This commit is contained in:
clemkeirua 2020-09-25 10:59:46 +02:00 committed by Keirua (Rebase PR Action)
parent f6ee062f27
commit dd7840cdc4

View file

@ -308,7 +308,7 @@ class Dossier < ApplicationRecord
after_save :send_dossier_received
after_save :send_web_hook
after_create :send_draft_notification_email
after_save_commit :send_draft_notification_email
validates :user, presence: true
validates :individual, presence: true, if: -> { revision.procedure.for_individual? }