diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-05 10:38:44 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-05 10:38:44 +0200 |
commit | 22d5d8913bfadb409a66e8ff8543d25bab868015 (patch) | |
tree | 011e48ab1cd5f8d3cf9ce725b803f5f45116f059 /lib/api | |
parent | 1498de225cb0a4c4ac8a3954bde2c9597518c36c (diff) | |
parent | b7d20f14c6008a857a16977a92bb87002683059d (diff) | |
download | gitlab-ce-22d5d8913bfadb409a66e8ff8543d25bab868015.tar.gz |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/commits.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb index 23270b1c0f4..f4efb651eb6 100644 --- a/lib/api/commits.rb +++ b/lib/api/commits.rb @@ -62,7 +62,7 @@ module API sha = params[:sha] commit = user_project.commit(sha) not_found! 'Commit' unless commit - notes = Note.where(commit_id: commit.id) + notes = Note.where(commit_id: commit.id).order(:created_at) present paginate(notes), with: Entities::CommitNote end |