allow default logo of a procedure to be configured in .env file

Refs: #5795
This commit is contained in:
Fabrice Gangler 2020-12-10 21:05:42 +01:00
parent bb5f3a206e
commit 064ea776c7
3 changed files with 7 additions and 1 deletions

View file

@ -568,7 +568,7 @@ class Procedure < ApplicationRecord
if logo.attached?
Rails.application.routes.url_helpers.url_for(logo)
else
ActionController::Base.helpers.image_url("republique-francaise-logo.svg")
ActionController::Base.helpers.image_url(PROCEDURE_DEFAULT_LOGO_SRC)
end
end