Sha256: 52e84a6353e849d3fd7a151f63928f63ab8c9db626d41a03aea4b2e24ec5a796

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

module LinkedRails
  module Menus
    class ListSerializer < LinkedRails.serializer_parent_class
      include LinkedRails::Serializer

      has_many :menus, predicate: Vocab.ontola[:menus], polymorphic: true do |object|
        object.menus&.compact
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
linked_rails-0.0.4 app/serializers/linked_rails/menus/list_serializer.rb
linked_rails-0.0.3 app/serializers/linked_rails/menus/list_serializer.rb
linked_rails-0.0.2 app/serializers/linked_rails/menus/list_serializer.rb
linked_rails-0.0.1 app/serializers/linked_rails/menus/list_serializer.rb