Module: Decidim::DataPortabilitySerializers

Defined in:
lib/decidim/data_portability_serializers/data_portability_user_serializer.rb,
lib/decidim/data_portability_serializers.rb,
lib/decidim/data_portability_serializers/data_portability_follow_serializer.rb,
lib/decidim/data_portability_serializers/data_portability_report_serializer.rb,
lib/decidim/data_portability_serializers/data_portability_identity_serializer.rb,
lib/decidim/data_portability_serializers/data_portability_user_group_serializer.rb,
lib/decidim/data_portability_serializers/data_portability_conversation_serializer.rb,
lib/decidim/data_portability_serializers/data_portability_notification_serializer.rb,
lib/decidim/data_portability_serializers/data_portability_participatory_space_private_user_serializer.rb

Overview

This class serializes a User so can be exported to CSV

Defined Under Namespace

Classes: DataPortabilityConversationSerializer, DataPortabilityFollowSerializer, DataPortabilityIdentitySerializer, DataPortabilityNotificationSerializer, DataPortabilityParticipatorySpacePrivateUserSerializer, DataPortabilityReportSerializer, DataPortabilityUserGroupSerializer, DataPortabilityUserSerializer

Class Method Summary collapse

Class Method Details

.data_entitiesObject



14
15
16
17
18
19
20
21
# File 'lib/decidim/data_portability_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