about summary refs log tree commit diff
path: root/app/serializers/rest/status_source_serializer.rb
blob: cd3c740847931c6c933cb5fb1f4b365c5a334f82 (plain) (blame)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class REST::StatusSourceSerializer < ActiveModel::Serializer
  attributes :id, :text, :spoiler_text

  def id
    object.id.to_s
  end
end