Sha256: 3a217c53b3592f25562e011bf20acce212948623ecf6f3cb4001bb9f5a5e518a
Contents?: true
Size: 643 Bytes
Versions: 25
Compression:
Stored size: 643 Bytes
Contents
# frozen_string_literal: true module Decidim # This class serializes a Follow so can be exported to CSV module DownloadYourDataSerializers class DownloadYourDataFollowSerializer < 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
25 entries across 25 versions & 1 rubygems