From 79b64ef4aced8c030b23b2b7c4aa9b1bea192e1b Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 29 Nov 2011 20:06:37 +0200 Subject: fixed merge request diff --- app/models/commit.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/commit.rb') diff --git a/app/models/commit.rb b/app/models/commit.rb index 0884e34225c..c97aec28c72 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -36,4 +36,8 @@ class Commit def author_name encode(author.name) end + + def prev_commit + parents.first + end end -- cgit v1.2.1