summaryrefslogtreecommitdiff
path: root/app/mailers/notify.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-09-30 12:06:01 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-09-30 12:06:01 +0000
commitdea6ebd31af8e97e8b14160181bd4ea7578c94e8 (patch)
tree5e429fda4d43aa3450f7d6b015668c3474cd9e6c /app/mailers/notify.rb
parent94611567bd03083e0ecef7a582a174aa34844482 (diff)
downloadgitlab-ce-dea6ebd31af8e97e8b14160181bd4ea7578c94e8.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/mailers/notify.rb')
-rw-r--r--app/mailers/notify.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 6fa1c701cd8..d0b43b4397f 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -71,20 +71,6 @@ class Notify < BaseMailer
address.format
end
- # Look up a User's notification email for a particular context.
- # Can look up by their ID or can accept a User object.
- #
- # recipient - User object OR a User ID
- # notification_group - The parent group of the notification
- #
- # Returns a String containing the User's email address.
- def recipient(recipient, notification_group = nil)
- user = recipient if recipient.is_a?(User)
- user ||= User.find(recipient)
-
- user.notification_email_for(notification_group)
- end
-
# Formats arguments into a String suitable for use as an email subject
#
# extra - Extra Strings to be inserted into the subject