Commit 19dcb2da authored by Luke Bennett's avatar Luke Bennett

Use path helper instead of url helper

parent e0f84130
...@@ -20,7 +20,7 @@ class Projects::BoardsController < Projects::ApplicationController ...@@ -20,7 +20,7 @@ class Projects::BoardsController < Projects::ApplicationController
private private
def assign_endpoint_vars def assign_endpoint_vars
@boards_endpoint = project_boards_url(project) @boards_endpoint = project_boards_path(project)
@bulk_issues_path = bulk_update_project_issues_path(project) @bulk_issues_path = bulk_update_project_issues_path(project)
@namespace_path = project.namespace.full_path @namespace_path = project.namespace.full_path
@labels_endpoint = project_labels_path(project) @labels_endpoint = project_labels_path(project)
......
...@@ -6,7 +6,7 @@ module BoardsHelper ...@@ -6,7 +6,7 @@ module BoardsHelper
def board_data def board_data
{ {
boards_endpoint: @boards_endpoint, boards_endpoint: @boards_endpoint,
lists_endpoint: board_lists_url(board), lists_endpoint: board_lists_path(board),
board_id: board.id, board_id: board.id,
disabled: "#{!can?(current_user, :admin_list, current_board_parent)}", disabled: "#{!can?(current_user, :admin_list, current_board_parent)}",
issue_link_base: build_issue_link_base, issue_link_base: build_issue_link_base,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment