diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-16 21:46:26 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-16 21:46:26 +0200 |
commit | 0b1655e7b2e2aa57cb7ea8401743d709bf246074 (patch) | |
tree | 0f2846f32aec86f3d44300649b0c77f179bec0c4 /app/models/project.rb | |
parent | 065e0c0fe4e5e16b90c01736721e4c794b71dac9 (diff) | |
download | gitlab-ce-0b1655e7b2e2aa57cb7ea8401743d709bf246074.tar.gz |
Rename CiStatus to Statusable
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 95eb7c51b80..3a55e6c5dd6 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -958,7 +958,7 @@ class Project < ActiveRecord::Base end def ci_commit(sha, ref) - ci_commits.find_by(sha: sha, ref: ref) + ci_commits.order(id: :desc).find_by(sha: sha, ref: ref) end def ensure_ci_commit(sha, ref) |