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:
authorStan Hu <stanhu@gmail.com>2019-08-30 02:10:49 +0300
committerStan Hu <stanhu@gmail.com>2019-08-30 23:15:34 +0300
commitd93b985df07ccf07541efef709edb8467e0f2955 (patch)
tree6951f100961a2c6b56dfe593daaaaa5a6675f5a4 /app/models/notification_setting.rb
parentfa6f19d1f83b68f2bb729be889ab7d66adbbedb8 (diff)
Use self.ignored_columns += instead of =
This is to accomodate prepended modules.
Diffstat (limited to 'app/models/notification_setting.rb')
-rw-r--r--app/models/notification_setting.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/notification_setting.rb b/app/models/notification_setting.rb
index 9882f1dc8b3..637c017a342 100644
--- a/app/models/notification_setting.rb
+++ b/app/models/notification_setting.rb
@@ -1,8 +1,7 @@
# frozen_string_literal: true
class NotificationSetting < ApplicationRecord
-
- self.ignored_columns = %i[events]
+ self.ignored_columns += %i[events]
enum level: { global: 3, watch: 2, participating: 1, mention: 4, disabled: 0, custom: 5 }