Updated GroupSerializer with new keys

• Updated:
- GroupSerializer with new keys
This commit is contained in:
mgabdev 2020-08-06 00:09:53 -05:00
parent 2e286784c1
commit ba840fd6b6

View File

@ -3,12 +3,17 @@
class REST::GroupSerializer < ActiveModel::Serializer class REST::GroupSerializer < ActiveModel::Serializer
include RoutingHelper 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 def id
object.id.to_s object.id.to_s
end end
def category
object.group_categories_id
end
def clean_migrated_url def clean_migrated_url
object object
.cover_image_file_name .cover_image_file_name