suggestion de Colin

Co-authored-by: Colin Darie <colin@darie.eu>
This commit is contained in:
Benoit Queyron 2024-06-14 17:37:05 +02:00 committed by GitHub
parent 97ef01b075
commit 98782f8bf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,11 +92,8 @@ class NotificationMailer < ApplicationMailer
def set_jdma
if params[:state] == Dossier.states.fetch(:en_construction) && @dossier.procedure.monavis_embed
@jdma_html = @dossier.procedure.monavis_embed_html_source("email")
else
return
end
end
def set_dossier
@dossier = params[:dossier]
configure_defaults_for_user(@dossier.user)