From 0a29bde4a1c2c77c49c3fa28ca3f059ba3d3b7d5 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Wed, 3 May 2017 01:40:20 +0800 Subject: Rename latest_pipeline to last_pipeline 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 --- app/models/commit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models/commit.rb') 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) -- cgit v1.2.1