Commit 3264e09c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Require build to be present in the controller

parent 61dd92aa
......@@ -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
......
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