Skip to content
Snippets Groups Projects
Commit 4cd9f2b1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

use order instead of latest_sha scope for builds list

parent 5a0a6fbe
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -22,7 +22,7 @@ class ProjectsController < ApplicationController
 
@builds = @project.builds
@builds = @builds.where(ref: @ref) if @ref
@builds = @builds.latest_sha.order('id DESC').page(params[:page]).per(20)
@builds = @builds.order('id DESC').page(params[:page]).per(20)
end
 
def details
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