diff options
author | Wei-Meng Lee <wlee@gitlab.com> | 2019-05-13 15:52:57 -0500 |
---|---|---|
committer | Wei-Meng Lee <wlee@gitlab.com> | 2019-05-31 20:49:27 +0800 |
commit | ddd6f804576e1e9d69db85242a8dbc687cdb35db (patch) | |
tree | 5f3ecfbb3fc6d57f9a75358d2692a6de9ebfe09a /app/mailers | |
parent | f72383066d9758988706e697c26ba35efe90c564 (diff) | |
download | gitlab-ce-ddd6f804576e1e9d69db85242a8dbc687cdb35db.tar.gz |
Move method into group
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/notify.rb | 2 |
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 |