Added GroupCategoriesSerializer
• Added: - GroupCategoriesSerializer
This commit is contained in:
9
app/serializers/rest/group_categories_serializer.rb
Normal file
9
app/serializers/rest/group_categories_serializer.rb
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class REST::GroupCategoriesSerializer < ActiveModel::Serializer
|
||||||
|
attributes :id, :text, :created_at
|
||||||
|
|
||||||
|
def id
|
||||||
|
object.id.to_s
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user