summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-05-03 22:11:19 +1100
committerblackst0ne <blackst0ne.ru@gmail.com>2017-05-04 12:58:41 +1100
commit62be3355b1cc74e085a7a046e7aca05f59a1f97a (patch)
treed2d01ebfac3f3af42046f9fd3348c966ea90a6d9 /app/models/note.rb
parentc2b869a119f7400d748a8a97e4abc3137bc7c51d (diff)
downloadgitlab-ce-62be3355b1cc74e085a7a046e7aca05f59a1f97a.tar.gz
Add alias_attributes for notes
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 943211ca991..002a1565d54 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -18,6 +18,9 @@ class Note < ActiveRecord::Base
cache_markdown_field :note, pipeline: :note, issuable_state_filter_enabled: true
+ alias_attribute :last_edited_at, :updated_at
+ alias_attribute :last_edited_by, :updated_by
+
# Attribute containing rendered and redacted Markdown as generated by
# Banzai::ObjectRenderer.
attr_accessor :redacted_note_html