summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-11-24 14:32:32 +0800
committerDouwe Maan <douwe@selenight.nl>2016-11-24 14:32:32 +0800
commitba5e98bb701672d0cf1d98a80272c16a754ec83c (patch)
tree89a691e8b71ced5aa59f856a34c584b4a9394382 /app/models/note.rb
parentd0c0c75ca9568bc3ec00c341a6053623d85e6201 (diff)
downloadgitlab-ce-ba5e98bb701672d0cf1d98a80272c16a754ec83c.tar.gz
Backport Note#commands_changes from EEbackport-commands-params
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 9ff5e308ed2..ed4224e3046 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -19,6 +19,9 @@ class Note < ActiveRecord::Base
# Banzai::ObjectRenderer
attr_accessor :user_visible_reference_count
+ # Attribute used to store the attributes that have ben changed by slash commands.
+ attr_accessor :commands_changes
+
default_value_for :system, false
attr_mentionable :note, pipeline: :note