set Current.contact_email

This commit is contained in:
simon lehericey 2024-03-19 22:13:40 +01:00
parent efa35e04a5
commit d13910dac4
2 changed files with 3 additions and 1 deletions

View file

@ -34,8 +34,10 @@ class ApplicationController < ActionController::Base
if Current.host.include?("gouv.fr")
Current.application_name = "demarches.gouv.fr"
Current.contact_email = "contact@demarches.gouv.fr"
else
Current.application_name = APPLICATION_NAME
Current.contact_email = CONTACT_EMAIL
end
end

View file

@ -1,3 +1,3 @@
class Current < ActiveSupport::CurrentAttributes
attribute :user, :request_id, :browser, :host, :application_name
attribute :user, :request_id, :browser, :host, :application_name, :contact_email
end