diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-01-08 11:34:22 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-01-08 11:34:22 +0000 |
commit | 33fb2f99e92acc96ab322f4594a13f11218db87e (patch) | |
tree | b0d34a33e47a634c78b03fa0c2aa4667c6f67067 /app/serializers | |
parent | 3013951c7318d6b08d83c6ec96a4d68d031c3a62 (diff) | |
parent | 6185ce0c84b5674abf4f54576fec44fece571565 (diff) | |
download | gitlab-ce-33fb2f99e92acc96ab322f4594a13f11218db87e.tar.gz |
Merge branch '40549-render-emoj-in-groups-overview' into 'master'
Resolve "No Rendering of emoji's in Group-Overview after update"
Closes #40549
See merge request gitlab-org/gitlab-ce!16098
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/group_child_entity.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/serializers/group_child_entity.rb b/app/serializers/group_child_entity.rb index 37240bfb0b1..aca4e4ca488 100644 --- a/app/serializers/group_child_entity.rb +++ b/app/serializers/group_child_entity.rb @@ -1,6 +1,7 @@ class GroupChildEntity < Grape::Entity include ActionView::Helpers::NumberHelper include RequestAwareEntity + include MarkupHelper expose :id, :name, :description, :visibility, :full_name, :created_at, :updated_at, :avatar_url @@ -59,6 +60,10 @@ class GroupChildEntity < Grape::Entity number_with_delimiter(instance.member_count) end + expose :markdown_description do |instance| + markdown_description + end + private def membership @@ -74,4 +79,8 @@ class GroupChildEntity < Grape::Entity def type object.class.name.downcase end + + def markdown_description + markdown_field(object, :description) + end end |