Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei-Meng Lee <wlee@gitlab.com>2019-05-13 23:52:57 +0300
committerWei-Meng Lee <wlee@gitlab.com>2019-05-31 15:49:27 +0300
commitddd6f804576e1e9d69db85242a8dbc687cdb35db (patch)
tree5f3ecfbb3fc6d57f9a75358d2692a6de9ebfe09a /app/mailers/notify.rb
parentf72383066d9758988706e697c26ba35efe90c564 (diff)
Move method into group
Diffstat (limited to 'app/mailers/notify.rb')
-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