summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-05-04 16:01:40 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-05-04 16:01:40 +0100
commit863d830427c2a30f2867d15862e4854924289c63 (patch)
tree337ce7b647f31e3d98a7c66a2c038b2fefdfe6ac /app/models/commit.rb
parentf0329ba90ff00380e9a618c4757630f9b134eed3 (diff)
parent3441e60fd9d8d3ce111b1ece93ae867b3938f7e5 (diff)
downloadgitlab-ce-24339-job-page-step-1.tar.gz
Merge branch '24339-job-page' into 24339-job-page-step-124339-job-page-step-1
* 24339-job-page: (274 commits) Document serializers Pipeline table mini graph dropdown remains open when table is refreshed Adds off for event hub Compile gitlab-shell go executables Allow to create new branch and empty WIP merge request from issue page Moved to a view spec Improving copy of CONTRIBUTING.md, PROCESS.md, and code_review.md Convert seconds to minutes and hours on chat notifations Disable navigation to Pages config if Pages is disabled Sort the network graph both by commit date and topographically. Add breadcrumb, build header and pipelines submenu to artifacts browser Update todos screenshots removes the possibility of commit messages having carriage returns Handle incoming emails from aliases correctly Allow commenting on older versions of the diff and comparisons between diff versions Add real-time note edits :chipmunk: Move api lint out of static analysis job Fix project tree saver and fork spec failures Update ToC of CONTRIBUTING.md and PROCESS.md Improve the Code review guidelines documentation ...
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 bb4cb8efd15..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
- pipelines.last
+ def last_pipeline
+ @last_pipeline ||= pipelines.last
end
def status(ref = nil)