Commit 3c7eebdd authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Restore current_board_json method

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 60f8ee06
......@@ -62,5 +62,16 @@ module EE
s_("IssueBoards|Board")
end
end
def current_board_json
board = @board || @boards.first
board.to_json(
only: [:id, :name, :milestone_id],
include: {
milestone: { only: [:title] }
}
)
end
end
end
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