Gab-Social/app/serializers/rest/album_serializer.rb
mgabdev 34f6a1ab5b Progress
new MediaAttachment video style :playable for mp4 to make videojs work with multiple files, hiding albums, hiding bookmark collections. may need tweaks on mediaattachment for mov and other formats : todo :
2020-12-22 12:11:22 -05:00

12 lines
237 B
Ruby

# frozen_string_literal: true
class REST::AlbumSerializer < ActiveModel::Serializer
attributes :id, :title, :description, :count
belongs_to :cover, serializer: REST::MediaAttachmentSerializer
def id
object.id.to_s
end
end