diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-17 18:10:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-17 18:10:50 +0300 |
commit | 31d92b51ea49fa6669eb9518b1e3e1e5673d9e48 (patch) | |
tree | bbb4f052b017ba6cbb2f66abb7c11381f38e10ec /app/models/work_items | |
parent | 735165a16c5b51190b551a74a4e99af0c072b399 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/work_items')
-rw-r--r-- | app/models/work_items/widgets/description.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/models/work_items/widgets/description.rb b/app/models/work_items/widgets/description.rb index 1e84d172bef..ec3b7957c79 100644 --- a/app/models/work_items/widgets/description.rb +++ b/app/models/work_items/widgets/description.rb @@ -3,7 +3,13 @@ module WorkItems module Widgets class Description < Base - delegate :description, to: :work_item + delegate :description, :edited?, :last_edited_at, to: :work_item + + def last_edited_by + return unless work_item.edited? + + work_item.last_edited_by + end end end end |