From cfbaef3f1c28cdb9b15615215b87167181cb210f Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 6 Feb 2020 03:08:47 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/models/notification_setting.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models/notification_setting.rb') diff --git a/app/models/notification_setting.rb b/app/models/notification_setting.rb index 1447f822513..e2c362538eb 100644 --- a/app/models/notification_setting.rb +++ b/app/models/notification_setting.rb @@ -27,6 +27,8 @@ class NotificationSetting < ApplicationRecord .where.not(projects: { pending_delete: true }) end + scope :preload_source_route, -> { preload(source: [:route]) } + EMAIL_EVENTS = [ :new_release, :new_note, -- cgit v1.2.1