summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-07-16 22:33:58 -0700
committerStan Hu <stanhu@gmail.com>2015-07-16 22:33:58 -0700
commit6c9f527b3f3f0c47438e0722792ca247a44e4964 (patch)
tree08a48d27d44cfb36ba638c444b91dc99e6d3f0a1 /lib
parentdaed441dfe2bff0c64c581a802ee38a1ac42e6c6 (diff)
downloadgitlab-ce-6c9f527b3f3f0c47438e0722792ca247a44e4964.tar.gz
Return comments in created order in merge request API
Closes #1832
Diffstat (limited to 'lib')
-rw-r--r--lib/api/merge_requests.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/merge_requests.rb b/lib/api/merge_requests.rb
index aa43e1dffd9..ce21c699e8f 100644
--- a/lib/api/merge_requests.rb
+++ b/lib/api/merge_requests.rb
@@ -229,7 +229,7 @@ module API
authorize! :read_merge_request, merge_request
- present paginate(merge_request.notes), with: Entities::MRNote
+ present paginate(merge_request.notes.fresh), with: Entities::MRNote
end
# Post comment to merge request