hometown/app/serializers/rest/list_serializer.rb
2021-04-22 16:37:11 -07:00

10 lines
180 B
Ruby

# frozen_string_literal: true
class REST::ListSerializer < ActiveModel::Serializer
attributes :id, :title, :replies_policy, :is_exclusive
def id
object.id.to_s
end
end