summaryrefslogtreecommitdiff
path: root/app/mailers/notify.rb
diff options
context:
space:
mode:
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