Added GroupCategoriesSerializer
• Added: - GroupCategoriesSerializer
This commit is contained in:
parent
a5540d3106
commit
84429632ab
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
|
Loading…
Reference in New Issue
Block a user