diff options
| author | skv <skv-headless@yandex.ru> | 2014-01-19 22:55:59 +0400 |
|---|---|---|
| committer | skv <skv-headless@yandex.ru> | 2014-01-19 23:39:56 +0400 |
| commit | a3f645ef51ec12ce93934b4ddb11313613d8c451 (patch) | |
| tree | f30e76940e436049aa83a8c60741bc6c2d9b7f44 /app/models/note.rb | |
| parent | 3fe578a7fdaea8607cf98ffb1878c03fd5ac3649 (diff) | |
| download | gitlab-ce-a3f645ef51ec12ce93934b4ddb11313613d8c451.tar.gz | |
Remove deprecated finders
Diffstat (limited to 'app/models/note.rb')
| -rw-r--r-- | app/models/note.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 67755f44148..f4c0be3307f 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -123,8 +123,8 @@ class Note < ActiveRecord::Base def commit_author @commit_author ||= - project.users.find_by_email(noteable.author_email) || - project.users.find_by_name(noteable.author_name) + project.users.find_by(email: noteable.author_email) || + project.users.find_by(name: noteable.author_name) rescue nil end |
