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
def profile_tab?
controller_name=="profiles"
controller.class.name=="ProfilesController"
end
def root_tab?
controller_name=="jobs"
controller.class.name=="JobsController"
end
def is_admin_or_operator?