diff options
Diffstat (limited to 'app/serializers/rest/status_source_serializer.rb')
-rw-r--r-- | app/serializers/rest/status_source_serializer.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/serializers/rest/status_source_serializer.rb b/app/serializers/rest/status_source_serializer.rb new file mode 100644 index 000000000..c03cbd20d --- /dev/null +++ b/app/serializers/rest/status_source_serializer.rb @@ -0,0 +1,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 |