Account menu on header

This commit is contained in:
Mathieu Magnin 2017-06-22 16:45:57 +02:00
parent b7dc511a7d
commit 33af09cae5
8 changed files with 115 additions and 1 deletions

View file

@ -5,4 +5,10 @@ module ApplicationHelper
when "alert" then "alert-danger"
end
end
def current_email
current_user.try(:email) ||
current_gestionnaire.try(:email) ||
current_administrateur.try(:email)
end
end