From 36bd6c8494d4d1deb09f749a02aa9981c8d3080f Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Thu, 30 Jul 2015 14:45:54 +0200 Subject: Show who last edited a comment if it wasn't the original author --- app/models/note.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models/note.rb') 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 -- cgit v1.2.1