Skip to content
Snippets Groups Projects
Commit 3264e09c authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Require build to be present in the controller

parent 61dd92aa
No related branches found
No related tags found
No related merge requests found
Loading
@@ -121,8 +121,7 @@ class Projects::BuildsController < Projects::ApplicationController
Loading
@@ -121,8 +121,7 @@ class Projects::BuildsController < Projects::ApplicationController
end end
   
def build def build
@build ||= project.builds @build ||= project.builds.find(params[:id])
.find_by!(id: params[:id])
.present(current_user: current_user) .present(current_user: current_user)
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment