Sha256: 3976d8103b3fa72f412a2b7beaeb43ece04482e67931aae6c2c4de1d791be441

Contents?: true

Size: 431 Bytes

Versions: 14

Compression:

Stored size: 431 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
    attributes :screenshot_url

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

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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