diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-27 12:16:34 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-02 10:57:01 +0200 |
commit | d9698628d9042e820917e1144535888da147c228 (patch) | |
tree | 2e503064c3f84c431d690a1cea2cb5a9607238e2 /app/models | |
parent | 403b727138e22ce8ba83332ab03fa21fb7f72a1c (diff) | |
download | gitlab-ce-d9698628d9042e820917e1144535888da147c228.tar.gz |
Add Commit#author and #committer.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/commit.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index e0461809e10..481300171be 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -126,6 +126,14 @@ class Commit "commit #{id}" end + def author + User.find_for_commit(author_email, author_name) + end + + def committer + User.find_for_commit(committer_email, committer_name) + end + def method_missing(m, *args, &block) @raw.send(m, *args, &block) end |