diff options
author | Stan Hu <stanhu@gmail.com> | 2019-08-29 16:10:49 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-30 13:15:34 -0700 |
commit | d93b985df07ccf07541efef709edb8467e0f2955 (patch) | |
tree | 6951f100961a2c6b56dfe593daaaaa5a6675f5a4 /app/models/application_setting.rb | |
parent | fa6f19d1f83b68f2bb729be889ab7d66adbbedb8 (diff) | |
download | gitlab-ce-d93b985df07ccf07541efef709edb8467e0f2955.tar.gz |
Use self.ignored_columns += instead of =
This is to accomodate prepended modules.
Diffstat (limited to 'app/models/application_setting.rb')
-rw-r--r-- | app/models/application_setting.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb index 8ff4cba2adb..46259abf1b6 100644 --- a/app/models/application_setting.rb +++ b/app/models/application_setting.rb @@ -24,14 +24,14 @@ class ApplicationSetting < ApplicationRecord serialize :domain_blacklist, Array # rubocop:disable Cop/ActiveRecordSerialize serialize :repository_storages # rubocop:disable Cop/ActiveRecordSerialize - self.ignored_columns = %i[ - clientside_sentry_dsn - clientside_sentry_enabled - koding_enabled - koding_url - sentry_dsn - sentry_enabled - ] + self.ignored_columns += %i[ + clientside_sentry_dsn + clientside_sentry_enabled + koding_enabled + koding_url + sentry_dsn + sentry_enabled + ] cache_markdown_field :sign_in_text cache_markdown_field :help_page_text |