summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-07-30 14:45:54 +0200
committerDouwe Maan <douwe@gitlab.com>2015-07-30 14:45:54 +0200
commit36bd6c8494d4d1deb09f749a02aa9981c8d3080f (patch)
tree697f887f318c60bc8731173d7bc2ecdfdc7349e4 /app/models/note.rb
parenta06827bff934a7b387dc4280a555e0c81cc06604 (diff)
downloadgitlab-ce-36bd6c8494d4d1deb09f749a02aa9981c8d3080f.tar.gz
Show who last edited a comment if it wasn't the original author
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 62567f471dc..f7ca609f516 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -33,6 +33,7 @@ class Note < ActiveRecord::Base
belongs_to :project
belongs_to :noteable, polymorphic: true, touch: true
belongs_to :author, class_name: "User"
+ belongs_to :updated_by, class_name: "User"
delegate :name, to: :project, prefix: true
delegate :name, :email, to: :author, prefix: true