Added updated_at to PreviewCardSerializer
• Added: - updated_at to PreviewCardSerializer
This commit is contained in:
parent
ef0dc56a1b
commit
cafbbbf69f
|
@ -6,7 +6,7 @@ class REST::PreviewCardSerializer < ActiveModel::Serializer
|
|||
attributes :id, :url, :title, :description, :type,
|
||||
:author_name, :author_url, :provider_name,
|
||||
:provider_url, :html, :width, :height,
|
||||
:image, :embed_url
|
||||
:image, :embed_url, :updated_at
|
||||
|
||||
def image
|
||||
object.image? ? full_asset_url(object.image.url(:original)) : nil
|
||||
|
|
Loading…
Reference in New Issue