Fixed profile selected state in navbar

This commit is contained in:
2024-09-02 11:39:03 +02:00
parent 76ea655e4f
commit 6aca35ff46
2 changed files with 5 additions and 1 deletions

View File

@@ -25,4 +25,8 @@ module ApplicationHelper
def admin?
controller.class.name.split("::").first=="Admin"
end
def profile?
controller.class.name.split("::").first=="Profile"
end
end