about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-06-03 20:32:15 +0200
committerGitHub <noreply@github.com>2020-06-03 20:32:15 +0200
commitf669b8bcceb5043e468b3319c0bb7e834e3892d4 (patch)
treebac7086e8b7a9fecdcc41402e674cdbca363d237 /app/serializers/rest
parent77619b165452dd2815748c59e16451605b457ed6 (diff)
Fix wrong route helper in encrypted messages controller (#13952)
And add `created_at` to encrypted message serializer
Diffstat (limited to 'app/serializers/rest')
-rw-r--r--app/serializers/rest/encrypted_message_serializer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/serializers/rest/encrypted_message_serializer.rb b/app/serializers/rest/encrypted_message_serializer.rb
index 61ebc74fa..80c26d060 100644
--- a/app/serializers/rest/encrypted_message_serializer.rb
+++ b/app/serializers/rest/encrypted_message_serializer.rb
@@ -2,7 +2,8 @@
 
 class REST::EncryptedMessageSerializer < ActiveModel::Serializer
   attributes :id, :account_id, :device_id,
-             :type, :body, :digest, :message_franking
+             :type, :body, :digest, :message_franking,
+             :created_at
 
   def id
     object.id.to_s