summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2012-01-12 03:12:49 +0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2012-01-12 03:14:53 +0400
commiteb2a25f733e0ed39788022fbe901cb69967d9878 (patch)
tree8589db9f218ecd1083985d05ecbd93d05630eba8 /app/models/commit.rb
parent3c9d7b7077f41ab354dd36c42bdd74345993159a (diff)
downloadgitlab-ce-eb2a25f733e0ed39788022fbe901cb69967d9878.tar.gz
Added both committer and author display for commits list
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb10
1 files changed, 10 insertions, 0 deletions
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