Sha256: 62495a49231725eaa9f3776512fc3ef16252bc039963157b3233609eb3bbfab5

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

module Landable
  class TemplateSerializer < ActiveModel::Serializer
    attributes :id
    attributes :name, :body, :description
    attributes :thumbnail_url, :slug
    attributes :is_layout, :is_publishable
    attributes :file, :editable
    attributes :audit_flags
    attributes :deleted_at

    embed    :ids
    has_one  :published_revision

    has_many :pages
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
landable-1.13.1 app/serializers/landable/template_serializer.rb
landable-1.12.3 app/serializers/landable/template_serializer.rb
landable-1.12.2 app/serializers/landable/template_serializer.rb
landable-1.12.1 app/serializers/landable/template_serializer.rb