Sha256: e8ebf4b623c46f706fb3d57a188b28ef10cfcd6441ec33a0efa710ef89cb6be6

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

require_dependency 'landable/author_serializer'
require_dependency 'landable/theme'

module Landable
  class PageRevisionSerializer < ActiveModel::Serializer
    attributes :id, :ordinal, :notes, :is_minor, :is_published
    attributes :created_at, :updated_at
    attributes :preview_path

    embed :ids
    has_one :page
    has_one :author, include: true, serializer: AuthorSerializer

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
landable-1.7.1.rc1 app/serializers/landable/page_revision_serializer.rb
landable-1.7.0 app/serializers/landable/page_revision_serializer.rb