amelioration(mailer.logo): utilise procedure_logo_url pour afficher le logo dans les mails
This commit is contained in:
parent
a3c6a2c46f
commit
bf6b5ea963
4 changed files with 5 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue