Sha256: 28d70d807490548ef29679315a86ddcd973ee31bdf59257d317434d3ce884642

Contents?: true

Size: 200 Bytes

Versions: 2

Compression:

Stored size: 200 Bytes

Contents

module Landable
  class DirectorySerializer < ActiveModel::Serializer
    attributes :id, :path

    has_many :subdirectories, embed: :ids, embed_key: :path
    has_many :pages, embed: :ids
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
landable-1.14.0 app/serializers/landable/directory_serializer.rb
landable-1.13.2 app/serializers/landable/directory_serializer.rb