unless to if condition
This commit is contained in:
parent
1ee667af75
commit
c5fa25ee78
1 changed files with 5 additions and 3 deletions
|
@ -90,9 +90,11 @@ class NotificationMailer < ApplicationMailer
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_jdma
|
def set_jdma
|
||||||
return unless params[:state] == Dossier.states.fetch(:en_construction)
|
if params[:state] == Dossier.states.fetch(:en_construction) && @dossier.procedure.monavis_embed
|
||||||
|
@jdma_html = @dossier.procedure.monavis_embed_html_source("email")
|
||||||
@jdma_html = @dossier.procedure.monavis_embed_html_source("email").presence
|
else
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_dossier
|
def set_dossier
|
||||||
|
|
Loading…
Reference in a new issue