parent
9a3daf0b79
commit
9b40ef2a77
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…
Reference in a new issue