From eb2a25f733e0ed39788022fbe901cb69967d9878 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Thu, 12 Jan 2012 03:12:49 +0400 Subject: Added both committer and author display for commits list --- app/models/commit.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/models/commit.rb') diff --git a/app/models/commit.rb b/app/models/commit.rb index 695dfa5277e..7f06f4e68fa 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -5,10 +5,12 @@ class Commit attr_accessor :refs delegate :message, + :authored_date, :committed_date, :parents, :sha, :date, + :committer, :author, :message, :diffs, @@ -37,6 +39,14 @@ class Commit author.name end + def committer_name + committer.name + end + + def committer_email + committer.email + end + def prev_commit parents.first end -- cgit v1.2.1