summaryrefslogtreecommitdiff
path: root/lib/api/merge_request_diffs.rb
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-08-15 11:27:37 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-09-07 13:01:59 +0100
commitcfd475a45ee2655fa0148b0b561f95b44fe8641b (patch)
tree84bc8f20239d58ed19e35cb515c50d3b36735c4f /lib/api/merge_request_diffs.rb
parentd1b60cbc67dc14b21820ef3f823a8e1ea851697d (diff)
downloadgitlab-ce-cfd475a45ee2655fa0148b0b561f95b44fe8641b.tar.gz
Removes default scope from sortable23079-remove-default-scope-in-sortable
Diffstat (limited to 'lib/api/merge_request_diffs.rb')
-rw-r--r--lib/api/merge_request_diffs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/merge_request_diffs.rb b/lib/api/merge_request_diffs.rb
index c3affcc6c6b..95ef8f42954 100644
--- a/lib/api/merge_request_diffs.rb
+++ b/lib/api/merge_request_diffs.rb
@@ -21,7 +21,7 @@ module API
get ":id/merge_requests/:merge_request_iid/versions" do
merge_request = find_merge_request_with_access(params[:merge_request_iid])
- present paginate(merge_request.merge_request_diffs), with: Entities::MergeRequestDiff
+ present paginate(merge_request.merge_request_diffs.order_id_desc), with: Entities::MergeRequestDiff
end
desc 'Get a single merge request diff version' do