diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-23 18:04:21 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-23 18:07:15 -0400 |
commit | e9b65a3e05ca3bf4ea42f547f42a133802037b7e (patch) | |
tree | eefde4c68650f1d1b9eae5201fb2a885c04026ff /app/models/commit.rb | |
parent | 764b5913c8f960d09d4777e3233662f507b0ec13 (diff) | |
download | gitlab-ce-e9b65a3e05ca3bf4ea42f547f42a133802037b7e.tar.gz |
Only look up Commit authors/committers by emailrs-issue-1850
- Removes looking up authors/committers by name
- Renames `User.find_for_commit` to `User.find_by_any_email`
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 9d721661629..aff329d71fa 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -157,11 +157,11 @@ class Commit end def author - User.find_for_commit(author_email, author_name) + @author ||= User.find_by_any_email(author_email) end def committer - User.find_for_commit(committer_email, committer_name) + @committer ||= User.find_by_any_email(committer_email) end def notes |