about summary refs log tree commit diff
path: root/app/serializers/rest/status_source_serializer.rb
blob: c03cbd20d3c65af8146df911055653ced8c907a6 (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, :content_type

  def id
    object.id.to_s
  end
end