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:
authorSean McGivern <sean@gitlab.com>2018-03-30 15:25:46 +0300
committerSean McGivern <sean@gitlab.com>2018-03-30 15:25:46 +0300
commit5ab75649f3ea00b64cb63e7e5283100c6b70cfb5 (patch)
treec301d3390f5f665640d8f8e931662b28c4242a30 /app/models/notification_setting.rb
parent6412c4c54a7a824e108899a34b1ecec5cbdcec4b (diff)
Only send issue due emails to participants and custom subscribers
Diffstat (limited to 'app/models/notification_setting.rb')
-rw-r--r--app/models/notification_setting.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/notification_setting.rb b/app/models/notification_setting.rb
index f6d9b0215fc..9195408551f 100644
--- a/app/models/notification_setting.rb
+++ b/app/models/notification_setting.rb
@@ -47,7 +47,8 @@ class NotificationSetting < ActiveRecord::Base
].freeze
EXCLUDED_WATCHER_EVENTS = [
- :push_to_merge_request
+ :push_to_merge_request,
+ :issue_due
].push(*EXCLUDED_PARTICIPATING_EVENTS).freeze
def self.find_or_create_for(source)