Require build to be present in the controller
This commit is contained in:
parent
61dd92aaff
commit
3264e09c6f
1 changed files with 1 additions and 2 deletions
|
@ -121,8 +121,7 @@ class Projects::BuildsController < Projects::ApplicationController
|
|||
end
|
||||
|
||||
def build
|
||||
@build ||= project.builds
|
||||
.find_by!(id: params[:id])
|
||||
@build ||= project.builds.find(params[:id])
|
||||
.present(current_user: current_user)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue