diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-03 22:11:19 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-04 12:58:41 +1100 |
commit | 62be3355b1cc74e085a7a046e7aca05f59a1f97a (patch) | |
tree | d2d01ebfac3f3af42046f9fd3348c966ea90a6d9 /app/models/note.rb | |
parent | c2b869a119f7400d748a8a97e4abc3137bc7c51d (diff) | |
download | gitlab-ce-62be3355b1cc74e085a7a046e7aca05f59a1f97a.tar.gz |
Add alias_attributes for notes
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 3 |
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 |