Sha256: a2bf1534aab07033f78c8a649317439ac2f3bf602d33544cc08eb75db0dd0d5e

Contents?: true

Size: 254 Bytes

Versions: 135

Compression:

Stored size: 254 Bytes

Contents

# frozen_string_literal: true

module Alchemy
  class NodeSerializer < ActiveModel::Serializer
    attributes :id,
      :name,
      :lft,
      :rgt,
      :url,
      :parent_id

    has_many :ancestors, record_type: :node, serializer: self
  end
end

Version data entries

135 entries across 135 versions & 1 rubygems

Version Path
alchemy_cms-7.3.4 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.3.3 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.3.2 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.2.7 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.3.1 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.3.0 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.2.6 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.2.5 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.1.12 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.0.15 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.1.10 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.2.4 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.1.11 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.2.3 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.1.10 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.2.2 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.1.9 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.0.14 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.2.1 app/serializers/alchemy/node_serializer.rb
alchemy_cms-7.0.13 app/serializers/alchemy/node_serializer.rb