Sha256: 198fa1da60ab07b3e72d579094605adab10f68ad3bca1730c51ff43cc77b3e13

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

module Landable
  class AssetSerializer < ActiveModel::Serializer
    attributes :id, :name, :description
    attributes :file_size, :mime_type, :md5sum
    attributes :created_at, :updated_at
    attributes :public_url
    attributes :deleted_at

    embed :ids

    has_one :author, include: true, serializer: AuthorSerializer
    has_many :pages
    has_many :themes
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
landable-1.14.0 app/serializers/landable/asset_serializer.rb
landable-1.13.2 app/serializers/landable/asset_serializer.rb