diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-03 22:16:36 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-04 12:58:41 +1100 |
commit | aaa70a62b05f846a677a4b4dc5ccc83ca82fba32 (patch) | |
tree | 787d89c3da879d88263048df3c778eb008a1d46e /app/models/note.rb | |
parent | 62be3355b1cc74e085a7a046e7aca05f59a1f97a (diff) | |
download | gitlab-ce-aaa70a62b05f846a677a4b4dc5ccc83ca82fba32.tar.gz |
Add comment to notes aliases
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 002a1565d54..46d0a4f159f 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -18,6 +18,8 @@ class Note < ActiveRecord::Base cache_markdown_field :note, pipeline: :note, issuable_state_filter_enabled: true + # Aliases to make application_helper#edited_time_ago_with_tooltip helper work properly with notes. + # See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10392/diffs#note_28719102 alias_attribute :last_edited_at, :updated_at alias_attribute :last_edited_by, :updated_by |