Added updated_at to PreviewCardSerializer

• Added:
- updated_at to PreviewCardSerializer
This commit is contained in:
mgabdev 2020-11-02 21:46:02 -06:00
parent ef0dc56a1b
commit cafbbbf69f
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ class REST::PreviewCardSerializer < ActiveModel::Serializer
attributes :id, :url, :title, :description, :type, attributes :id, :url, :title, :description, :type,
:author_name, :author_url, :provider_name, :author_name, :author_url, :provider_name,
:provider_url, :html, :width, :height, :provider_url, :html, :width, :height,
:image, :embed_url :image, :embed_url, :updated_at
def image def image
object.image? ? full_asset_url(object.image.url(:original)) : nil object.image? ? full_asset_url(object.image.url(:original)) : nil