Do not rely on rails env to detect staging
This commit is contained in:
parent
ebc7044743
commit
f4f3a302b9
3 changed files with 6 additions and 2 deletions
|
@ -50,6 +50,10 @@ module ApplicationHelper
|
|||
current_administrateur&.email
|
||||
end
|
||||
|
||||
def staging?
|
||||
ENV['APP_NAME'] == 'tps_dev'
|
||||
end
|
||||
|
||||
def root_path_for_profile(nav_bar_profile)
|
||||
case nav_bar_profile
|
||||
when :gestionnaire
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue