Sha256: 10e80ad2cdb90def797c7d061f5818a3c80eec54095b78dcacb37d00b7c4dfc3

Contents?: true

Size: 342 Bytes

Versions: 17

Compression:

Stored size: 342 Bytes

Contents

require_dependency 'landable/author_serializer'

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

    embed :ids
    has_one :template
    has_one :author, include: true, serializer: AuthorSerializer
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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