gab-social/app/serializers/rest/list_serializer.rb

11 lines
162 B
Ruby
Raw Normal View History

2019-07-02 08:10:25 +01:00
# frozen_string_literal: true
class REST::ListSerializer < ActiveModel::Serializer
2020-03-25 03:08:43 +00:00
attributes :id, :title, :created_at
2019-07-02 08:10:25 +01:00
def id
object.id.to_s
end
2020-03-25 03:08:43 +00:00
2019-07-02 08:10:25 +01:00
end