diff options
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 |