Merge pull request #2902 from tchak/expose-commentaire-attachement-on-api
Expose commentaire attachement on api
This commit is contained in:
commit
3fc462fb89
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,10 @@
|
||||||
class CommentaireSerializer < ActiveModel::Serializer
|
class CommentaireSerializer < ActiveModel::Serializer
|
||||||
attributes :email,
|
attributes :email,
|
||||||
:body,
|
:body,
|
||||||
:created_at
|
:created_at,
|
||||||
|
:attachment
|
||||||
|
|
||||||
|
def attachment
|
||||||
|
object.file_url
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue