[Fix #1808] Use &. where possible
This commit is contained in:
parent
9df649d8cc
commit
dc045bdefb
14 changed files with 26 additions and 26 deletions
|
@ -15,9 +15,9 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def current_email
|
||||
current_user.try(:email) ||
|
||||
current_gestionnaire.try(:email) ||
|
||||
current_administrateur.try(:email)
|
||||
current_user&.email ||
|
||||
current_gestionnaire&.email ||
|
||||
current_administrateur&.email
|
||||
end
|
||||
|
||||
def root_path_for_profile(nav_bar_profile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue