summaryrefslogtreecommitdiff
path: root/app/mailers/notify.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-11-18 10:12:09 +0100
committerGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-08 08:43:08 +0100
commit45f7f01f19a6c5f977d71b094cbe5fedb44dc9e2 (patch)
tree62dc51605d6a7382ca7d27dd433230d0cb4538ac /app/mailers/notify.rb
parent8c6db54e1283348f64b46733875db7ffe08993a6 (diff)
downloadgitlab-ce-45f7f01f19a6c5f977d71b094cbe5fedb44dc9e2.tar.gz
Make `can_send_from_user_email?` public in Notify
Diffstat (limited to 'app/mailers/notify.rb')
-rw-r--r--app/mailers/notify.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 50a409c3754..0534eb025cd 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -33,13 +33,13 @@ class Notify < BaseMailer
allowed_domains
end
- private
-
def can_send_from_user_email?(sender)
sender_domain = sender.email.split("@").last
self.class.allowed_email_domains.include?(sender_domain)
end
+ private
+
# Return an email address that displays the name of the sender.
# Only the displayed name changes; the actual email address is always the same.
def sender(sender_id, send_from_user_email = false)