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-6.1.0 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.12 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.11 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.10 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.3.8 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.9 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.3.7 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.8 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.3.6 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.7 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.6 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.5 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.4 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.3 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.2 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.1 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.3.5 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.3.4 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.pre.rc7 app/serializers/alchemy/node_serializer.rb