From ba840fd6b6b5b61043e5e19ce2aa69f3d8862a7f Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Thu, 6 Aug 2020 00:09:53 -0500 Subject: [PATCH] Updated GroupSerializer with new keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - GroupSerializer with new keys --- app/serializers/rest/group_serializer.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/serializers/rest/group_serializer.rb b/app/serializers/rest/group_serializer.rb index 113f1dc8..a0554874 100644 --- a/app/serializers/rest/group_serializer.rb +++ b/app/serializers/rest/group_serializer.rb @@ -3,12 +3,17 @@ class REST::GroupSerializer < ActiveModel::Serializer include RoutingHelper - attributes :id, :title, :description, :cover_image_url, :is_archived, :member_count, :created_at + attributes :id, :title, :description, :cover_image_url, :is_archived, + :member_count, :created_at, :is_private, :is_visible, :slug, :tags, :category def id object.id.to_s end + def category + object.group_categories_id + end + def clean_migrated_url object .cover_image_file_name