summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-05-03 01:40:20 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-05-03 01:40:49 +0800
commit0a29bde4a1c2c77c49c3fa28ca3f059ba3d3b7d5 (patch)
tree6b946e5c31f67968f6bb4b8e27bf84948a81bc5f /app/models/commit.rb
parente69a7b95df4aea964878086157487379705c9a8c (diff)
downloadgitlab-ce-always-show-latest-pipeline-in-commit-box.tar.gz
Rename latest_pipeline to last_pipelinealways-show-latest-pipeline-in-commit-box
As it might be confusing that it's not the same as Pipeline#latest Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11038#note_28677090
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index e37c2d6bbd6..88a015cdb77 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -236,8 +236,8 @@ class Commit
project.pipelines.where(sha: sha)
end
- def latest_pipeline
- @latest_pipeline ||= pipelines.last
+ def last_pipeline
+ @last_pipeline ||= pipelines.last
end
def status(ref = nil)