Sha256: 6feebef6aa8736c183055968a5b8c72b30e40c6656ba2b0318947da667923f89
Contents?: true
Size: 641 Bytes
Versions: 56
Compression:
Stored size: 641 Bytes
Contents
# frozen_string_literal: true module Decidim # This class serializes a Follow so can be exported to CSV module DataPortabilitySerializers class DataPortabilityFollowSerializer < Decidim::Exporters::Serializer include Decidim::ResourceHelper # Public: Exports a hash with the serialized data for follow. def serialize { id: resource.id, followable: { id: resource.decidim_followable_id, type: resource.decidim_followable_type }, created_at: resource.created_at, updated_at: resource.updated_at } end end end end
Version data entries
56 entries across 56 versions & 1 rubygems