From e69a7b95df4aea964878086157487379705c9a8c Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Wed, 3 May 2017 00:10:17 +0800 Subject: Always show latest pipeline info in commit box --- app/models/commit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/commit.rb') diff --git a/app/models/commit.rb b/app/models/commit.rb index bb4cb8efd15..e37c2d6bbd6 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -237,7 +237,7 @@ class Commit end def latest_pipeline - pipelines.last + @latest_pipeline ||= pipelines.last end def status(ref = nil) -- cgit v1.2.1