Commit eba6696a authored by mgabdev's avatar mgabdev

Updated GroupSerializer for group_category

• Updated:
- GroupSerializer for group_category
parent 6e17b7c1
......@@ -4,14 +4,16 @@ class REST::GroupSerializer < ActiveModel::Serializer
include RoutingHelper
attributes :id, :title, :description, :description_html, :cover_image_url, :is_archived,
:member_count, :created_at, :is_private, :is_visible, :slug, :tags, :category
:member_count, :created_at, :is_private, :is_visible, :slug, :tags, :group_category
def id
object.id.to_s
end
def category
object.group_categories_id
def group_category
if object.group_categories
object.group_categories
end
end
def description
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment