Sha256: dc014006e3862ca99d1f51af6d3cccf34d697c77eb6ccf3ba07f263545c4509a

Contents?: true

Size: 381 Bytes

Versions: 14

Compression:

Stored size: 381 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

14 entries across 14 versions & 1 rubygems

Version Path
landable-1.13.1 app/serializers/landable/asset_serializer.rb
landable-1.12.3 app/serializers/landable/asset_serializer.rb
landable-1.12.2 app/serializers/landable/asset_serializer.rb
landable-1.12.1 app/serializers/landable/asset_serializer.rb
landable-1.11.1 app/serializers/landable/asset_serializer.rb
landable-1.11.0 app/serializers/landable/asset_serializer.rb
landable-1.10.0.rc2 app/serializers/landable/asset_serializer.rb
landable-1.10.0.rc1 app/serializers/landable/asset_serializer.rb
landable-1.9.2 app/serializers/landable/asset_serializer.rb
landable-1.9.1 app/serializers/landable/asset_serializer.rb
landable-1.9.0 app/serializers/landable/asset_serializer.rb
landable-1.9.0.rc2 app/serializers/landable/asset_serializer.rb
landable-1.9.0.rc1 app/serializers/landable/asset_serializer.rb
landable-1.8.0 app/serializers/landable/asset_serializer.rb