diff options
author | Stan Hu <stanhu@gmail.com> | 2019-08-30 02:10:49 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-30 23:15:34 +0300 |
commit | d93b985df07ccf07541efef709edb8467e0f2955 (patch) | |
tree | 6951f100961a2c6b56dfe593daaaaa5a6675f5a4 /app/models/note.rb | |
parent | fa6f19d1f83b68f2bb729be889ab7d66adbbedb8 (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.rb | 2 |
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 |