Expose commentaire attachement on api

fix #2817
This commit is contained in:
Paul Chavard 2018-10-24 15:17:41 +02:00
parent 9a3daf0b79
commit 9b40ef2a77

View file

@ -1,5 +1,10 @@
class CommentaireSerializer < ActiveModel::Serializer
attributes :email,
:body,
:created_at
:created_at,
:attachment
def attachment
object.file_url
end
end