set Current.contact_email
This commit is contained in:
parent
efa35e04a5
commit
d13910dac4
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue