diff options
| author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-10 21:07:26 +0800 |
|---|---|---|
| committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-10 21:07:26 +0800 |
| commit | 517249858e41694f51b67461b313d5a34c2a466c (patch) | |
| tree | c83ccbe4d2525e565b0aa32b97bafad29b74de21 | |
| parent | 729ad5d53f59b18f14f9c0c7ed306b34ae70c4b5 (diff) | |
| download | gitlab-ce-517249858e41694f51b67461b313d5a34c2a466c.tar.gz | |
It's latest_for, not just latest
| -rw-r--r-- | app/models/ci/pipeline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index bc1190537da..50f9ee7fc66 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -22,7 +22,7 @@ module Ci # ref can't be HEAD or SHA, can only be branch/tag name scope :latest_successful_for, ->(ref) do - latest(ref).success + latest_for(ref).success end scope :latest_for, ->(ref) do |
