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-5.2.3 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.pre.rc2 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.1.6 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.0.6 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.2.2 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.1.5 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.0.5 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.pre.rc1 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.pre.b6 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.pre.b5 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.pre.b4 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.b3 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.b2 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.b1 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.2.1 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.1.4 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.0.4 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.1.3 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.2.0 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.2.0.rc1 app/serializers/alchemy/node_serializer.rb