Module: Decidim::DownloadYourDataSerializers

Defined in:
lib/decidim/download_your_data_serializers/download_your_data_user_serializer.rb,
lib/decidim/download_your_data_serializers.rb,
lib/decidim/download_your_data_serializers/download_your_data_follow_serializer.rb,
lib/decidim/download_your_data_serializers/download_your_data_report_serializer.rb,
lib/decidim/download_your_data_serializers/download_your_data_identity_serializer.rb,
lib/decidim/download_your_data_serializers/download_your_data_user_group_serializer.rb,
lib/decidim/download_your_data_serializers/download_your_data_conversation_serializer.rb,
lib/decidim/download_your_data_serializers/download_your_data_notification_serializer.rb,
lib/decidim/download_your_data_serializers/download_your_data_participatory_space_private_user_serializer.rb

Overview

This class serializes a User so can be exported to CSV

Defined Under Namespace

Classes: DownloadYourDataConversationSerializer, DownloadYourDataFollowSerializer, DownloadYourDataIdentitySerializer, DownloadYourDataNotificationSerializer, DownloadYourDataParticipatorySpacePrivateUserSerializer, DownloadYourDataReportSerializer, DownloadYourDataUserGroupSerializer, DownloadYourDataUserSerializer

Class Method Summary collapse

Class Method Details

.data_entitiesObject



14
15
16
17
18
19
20
21
# File 'lib/decidim/download_your_data_serializers.rb', line 14

def self.data_entities
  ["Decidim::Follow", "Decidim::Identity",
   "Decidim::Messaging::Conversation", "Decidim::Notification",
   "Decidim::ParticipatorySpacePrivateUser", "Decidim::Report", "Decidim::User", "Decidim::UserGroup"] |
    Decidim.component_manifests.map(&:data_portable_entities).flatten |
    Decidim.participatory_space_manifests.map(&:data_portable_entities).flatten |
    (Decidim::Comments.data_portable_entities.flatten if defined?(Decidim::Comments))
end