fix condition si monavis est nil
This commit is contained in:
parent
1ee667af75
commit
ef2a021971
2 changed files with 2 additions and 2 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -90,9 +90,9 @@ class NotificationMailer < ApplicationMailer
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_jdma
|
def set_jdma
|
||||||
return unless params[:state] == Dossier.states.fetch(:en_construction)
|
return unless params[:state] == Dossier.states.fetch(:en_construction) && @dossier.procedure.monavis_embed
|
||||||
|
|
||||||
@jdma_html = @dossier.procedure.monavis_embed_html_source("email").presence
|
@jdma_html = @dossier.procedure.monavis_embed_html_source("email")
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_dossier
|
def set_dossier
|
||||||
|
|
Loading…
Reference in a new issue