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/note.rb
parentfa6f19d1f83b68f2bb729be889ab7d66adbbedb8 (diff)
Use self.ignored_columns += instead of =
This is to accomodate prepended modules.
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index c6ef91a27ad..2a0063c76b0 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -33,7 +33,7 @@ class Note < ApplicationRecord
end
end
- self.ignored_columns = %i[original_discussion_id]
+ self.ignored_columns += %i[original_discussion_id]
cache_markdown_field :note, pipeline: :note, issuable_state_filter_enabled: true