summaryrefslogtreecommitdiff
path: root/app/models/system_note_metadata.rb
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-03-15 14:19:45 +0100
committerJarka Kadlecova <jarka@gitlab.com>2017-03-28 15:16:41 +0200
commitc729d9dae7ad8c32cbe93b590baa24c8133364e5 (patch)
tree45bccc7eca5c789821a2435e7a0f3f1c75fc9e0e /app/models/system_note_metadata.rb
parent1c3c7fb25d972fc19d5b4bb371cb21094d81e478 (diff)
downloadgitlab-ce-c729d9dae7ad8c32cbe93b590baa24c8133364e5.tar.gz
Create metadata when creating system notes
Diffstat (limited to 'app/models/system_note_metadata.rb')
-rw-r--r--app/models/system_note_metadata.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/system_note_metadata.rb b/app/models/system_note_metadata.rb
index e8d3600d341..5cc66574941 100644
--- a/app/models/system_note_metadata.rb
+++ b/app/models/system_note_metadata.rb
@@ -5,7 +5,7 @@ class SystemNoteMetadata < ActiveRecord::Base
].freeze
validates :note, presence: true
- validates :icon, inclusion: ICON_TYPES, allow_nil: true
+ validates :action, inclusion: ICON_TYPES, allow_nil: true
belongs_to :note
end