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

class REST::TranslationSerializer < ActiveModel::Serializer
  attributes :content, :detected_source_language

  def content
    object.text
  end
end