Added the path for project selector

This commit is contained in:
2025-10-21 20:52:04 +03:00
parent d4551c7363
commit 25f8e3ad42
+5
View File
@@ -1,4 +1,9 @@
# frozen_string_literal: true # frozen_string_literal: true
module ApplicationHelper module ApplicationHelper
def path_for_projects_selector(project)
return project_path(project) if controller_name == 'projects'
url_for(controller: controller_name, action: :index, project:)
end
end end