Sha256: 3e78e53a28345ec9f82086fff0952ee564504c7e9453d5eea3bb1bf2eae69d8c

Contents?: true

Size: 470 Bytes

Versions: 4

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

module LinkedRails
  class Form
    class GroupSerializer < LinkedRails.serializer_parent_class
      attribute :label, predicate: Vocab.schema.name
      attribute :description, predicate: Vocab.schema.text
      attribute :collapsible, predicate: Vocab.form[:collapsible]
      attribute :hidden, predicate: Vocab.form[:hidden]

      has_many :fields, predicate: Vocab.form[:fields], sequence: true, polymorphic: true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
linked_rails-0.0.4 app/serializers/linked_rails/form/group_serializer.rb
linked_rails-0.0.3 app/serializers/linked_rails/form/group_serializer.rb
linked_rails-0.0.2 app/serializers/linked_rails/form/group_serializer.rb
linked_rails-0.0.1 app/serializers/linked_rails/form/group_serializer.rb