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.3.3 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.3.2 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.3.1 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.3.0 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.pre.rc6 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.2.7 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.2.6 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.1.10 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.0.10 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.pre.rc5 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.pre.rc4 app/serializers/alchemy/node_serializer.rb
alchemy_cms-6.0.0.pre.rc3 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.2.5 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.1.9 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.0.9 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.2.4 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.1.8 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.0.8 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.0.7 app/serializers/alchemy/node_serializer.rb
alchemy_cms-5.1.7 app/serializers/alchemy/node_serializer.rb