gab-social/app/serializers/rest/chat_message_serializer.rb
mgabdev 137a36b810 Progress with DMs
Progress with DMs
2020-12-03 17:13:11 -05:00

20 lines
365 B
Ruby

# frozen_string_literal: true
class REST::ChatMessageSerializer < ActiveModel::Serializer
attributes :id, :text, :language, :from_account_id,
:chat_conversation_id, :created_at
def id
object.id.to_s
end
def from_account_id
object.from_account_id.to_s
end
def chat_conversation_id
object.chat_conversation_id.to_s
end
end