summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorWei-Meng Lee <wlee@gitlab.com>2019-05-13 15:52:57 -0500
committerWei-Meng Lee <wlee@gitlab.com>2019-05-31 20:49:27 +0800
commitddd6f804576e1e9d69db85242a8dbc687cdb35db (patch)
tree5f3ecfbb3fc6d57f9a75358d2692a6de9ebfe09a /app/mailers
parentf72383066d9758988706e697c26ba35efe90c564 (diff)
downloadgitlab-ce-ddd6f804576e1e9d69db85242a8dbc687cdb35db.tar.gz
Move method into group
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/notify.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index f78be3882d6..cc27ba0c5cc 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -82,7 +82,7 @@ class Notify < BaseMailer
group_notification_email = nil
if notification_group
- notification_settings = notification_group.notification_settings(hierarchy_order: :asc).where(user: @current_user) # rubocop: disable CodeReuse/ActiveRecord
+ notification_settings = notification_group.notification_settings_for(@current_user, hierarchy_order: :asc)
group_notification_email = notification_settings.find { |n| n.notification_email.present? }&.notification_email
end