diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-06-03 20:32:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 20:32:15 +0200 |
commit | f669b8bcceb5043e468b3319c0bb7e834e3892d4 (patch) | |
tree | bac7086e8b7a9fecdcc41402e674cdbca363d237 /app/serializers | |
parent | 77619b165452dd2815748c59e16451605b457ed6 (diff) |
Fix wrong route helper in encrypted messages controller (#13952)
And add `created_at` to encrypted message serializer
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/rest/encrypted_message_serializer.rb | 3 |
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 |