amelioration(mailer.logo): utilise procedure_logo_url pour afficher le logo dans les mails

This commit is contained in:
Martin 2023-08-14 11:09:00 +02:00 committed by mfo
parent a3c6a2c46f
commit bf6b5ea963
4 changed files with 5 additions and 27 deletions

View file

@ -635,14 +635,6 @@ class Procedure < ApplicationRecord
result
end
def email_logo_url
if logo.attached?
logo.variant(:email).processed.blob.url(expires_in: 1.year)
else
ActionController::Base.helpers.image_url(PROCEDURE_DEFAULT_LOGO_SRC)
end
end
def logo_url
if logo.attached?
Rails.application.routes.url_helpers.url_for(logo)