Made the nav selected helper robust

This commit is contained in:
2024-09-14 01:26:07 +02:00
parent 4db1c7667e
commit 9cc7448d53

View File

@@ -27,11 +27,11 @@ module ApplicationHelper
end end
def profile_tab? def profile_tab?
controller_name=="profiles" controller.class.name=="ProfilesController"
end end
def root_tab? def root_tab?
controller_name=="jobs" controller.class.name=="JobsController"
end end
def is_admin_or_operator? def is_admin_or_operator?