change email to display for expert

This commit is contained in:
kara Diaby 2021-02-28 22:19:49 +01:00
parent e7945594cf
commit 328c2a8e3c

View file

@ -79,7 +79,7 @@ class Avis < ApplicationRecord
end
def email_to_display
instructeur&.email || email
expert&.email
end
def self.link_avis_to_instructeur(instructeur)