Progress on dms, code cleanup
Progress on dms, code cleanup
This commit is contained in:
10
app/serializers/rest/chat_message_serializer.rb
Normal file
10
app/serializers/rest/chat_message_serializer.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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
|
||||
end
|
||||
Reference in New Issue
Block a user