Sha256: 63cd27463335574acd07dba122e6dcf20c9bd0ba8e9b681b058eeab494c0f086

Contents?: true

Size: 1.65 KB

Versions: 25

Compression:

Stored size: 1.65 KB

Contents

# frozen_string_literal: true

module Decidim
  module DownloadYourDataSerializers
    autoload :DownloadYourDataUserSerializer, "decidim/download_your_data_serializers/download_your_data_user_serializer"
    autoload :DownloadYourDataUserGroupSerializer, "decidim/download_your_data_serializers/download_your_data_user_group_serializer"
    autoload :DownloadYourDataConversationSerializer, "decidim/download_your_data_serializers/download_your_data_conversation_serializer"
    autoload :DownloadYourDataReportSerializer, "decidim/download_your_data_serializers/download_your_data_report_serializer"
    autoload :DownloadYourDataFollowSerializer, "decidim/download_your_data_serializers/download_your_data_follow_serializer"
    autoload :DownloadYourDataNotificationSerializer, "decidim/download_your_data_serializers/download_your_data_notification_serializer"
    autoload :DownloadYourDataIdentitySerializer, "decidim/download_your_data_serializers/download_your_data_identity_serializer"
    autoload :DownloadYourDataParticipatorySpacePrivateUserSerializer, "decidim/download_your_data_serializers/download_your_data_participatory_space_private_user_serializer"

    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
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-core-0.29.1 lib/decidim/download_your_data_serializers.rb
decidim-core-0.28.4 lib/decidim/download_your_data_serializers.rb
decidim-core-0.27.9 lib/decidim/download_your_data_serializers.rb
decidim-core-0.29.0 lib/decidim/download_your_data_serializers.rb
decidim-core-0.28.3 lib/decidim/download_your_data_serializers.rb
decidim-core-0.27.8 lib/decidim/download_your_data_serializers.rb
decidim-core-0.29.0.rc4 lib/decidim/download_your_data_serializers.rb
decidim-core-0.29.0.rc3 lib/decidim/download_your_data_serializers.rb
decidim-core-0.29.0.rc2 lib/decidim/download_your_data_serializers.rb
decidim-core-0.29.0.rc1 lib/decidim/download_your_data_serializers.rb
decidim-core-0.28.2 lib/decidim/download_your_data_serializers.rb
decidim-core-0.27.7 lib/decidim/download_your_data_serializers.rb
decidim-core-0.28.1 lib/decidim/download_your_data_serializers.rb
decidim-core-0.27.6 lib/decidim/download_your_data_serializers.rb
decidim-core-0.28.0 lib/decidim/download_your_data_serializers.rb
decidim-core-0.27.5 lib/decidim/download_your_data_serializers.rb
decidim-core-0.28.0.rc5 lib/decidim/download_your_data_serializers.rb
decidim-core-0.28.0.rc4 lib/decidim/download_your_data_serializers.rb
decidim-core-0.27.4 lib/decidim/download_your_data_serializers.rb
decidim-core-0.27.3 lib/decidim/download_your_data_serializers.rb