Bring changes from EE

This commit is contained in:
Lin Jen-Shin 2018-06-26 01:33:12 +08:00
parent dd949b0be4
commit 74b5c4daf9
2 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class Projects::JobsController < Projects::ApplicationController
def build
@build ||= project.builds.find(params[:id])
.present(current_user: current_user)
.present(current_user: current_user)
end
def build_path(build)

View File

@ -95,6 +95,7 @@ class Projects::WikisController < Projects::ApplicationController
def destroy
@page = @project_wiki.find_page(params[:id])
WikiPages::DestroyService.new(@project, current_user).execute(@page)
redirect_to project_wiki_path(@project, :home),