diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-14 12:08:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-14 12:08:04 +0300 |
commit | 3ed578edf525bce3167860b84f6b43bab5065cf5 (patch) | |
tree | da8ec39db487cb0023469ec0b2d70bfe2352d500 /app/models/notification_setting.rb | |
parent | ab4409930970b7974b721fee957baf4f403e51ff (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/notification_setting.rb')
-rw-r--r-- | app/models/notification_setting.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/notification_setting.rb b/app/models/notification_setting.rb index 2e45753c182..cde7b92e74a 100644 --- a/app/models/notification_setting.rb +++ b/app/models/notification_setting.rb @@ -3,9 +3,7 @@ class NotificationSetting < ApplicationRecord include FromUnion - enum level: { global: 3, watch: 2, participating: 1, mention: 4, disabled: 0, custom: 5 } - - default_value_for :level, NotificationSetting.levels[:global] + enum level: { global: 3, watch: 2, participating: 1, mention: 4, disabled: 0, custom: 5 }, _default: :global belongs_to :user belongs_to :source, polymorphic: true # rubocop:disable Cop/PolymorphicAssociations |