Account menu on header
This commit is contained in:
parent
b7dc511a7d
commit
33af09cae5
8 changed files with 115 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue