Sha256: fa45233d659b70eca3541f95006be72fb79a3df5a67ce7e07ffed6afaea34f42

Contents?: true

Size: 1.61 KB

Versions: 56

Compression:

Stored size: 1.61 KB

Contents

# frozen_string_literal: true

module Decidim
  module DataPortabilitySerializers
    autoload :DataPortabilityUserSerializer, "decidim/data_portability_serializers/data_portability_user_serializer"
    autoload :DataPortabilityUserGroupSerializer, "decidim/data_portability_serializers/data_portability_user_group_serializer"
    autoload :DataPortabilityConversationSerializer, "decidim/data_portability_serializers/data_portability_conversation_serializer"
    autoload :DataPortabilityReportSerializer, "decidim/data_portability_serializers/data_portability_report_serializer"
    autoload :DataPortabilityFollowSerializer, "decidim/data_portability_serializers/data_portability_follow_serializer"
    autoload :DataPortabilityNotificationSerializer, "decidim/data_portability_serializers/data_portability_notification_serializer"
    autoload :DataPortabilityIdentitySerializer, "decidim/data_portability_serializers/data_portability_identity_serializer"
    autoload :DataPortabilityParticipatorySpacePrivateUserSerializer, "decidim/data_portability_serializers/data_portability_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

56 entries across 56 versions & 1 rubygems

Version Path
decidim-core-0.26.10 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.9 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.8 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.7 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.5 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.4 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.3 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.2 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.1 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.0 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.0.rc2 lib/decidim/data_portability_serializers.rb
decidim-core-0.26.0.rc1 lib/decidim/data_portability_serializers.rb
decidim-core-0.25.2 lib/decidim/data_portability_serializers.rb
decidim-core-0.25.1 lib/decidim/data_portability_serializers.rb
decidim-core-0.25.0 lib/decidim/data_portability_serializers.rb
decidim-core-0.25.0.rc4 lib/decidim/data_portability_serializers.rb
decidim-core-0.25.0.rc3 lib/decidim/data_portability_serializers.rb
decidim-core-0.25.0.rc2 lib/decidim/data_portability_serializers.rb
decidim-core-0.25.0.rc1 lib/decidim/data_portability_serializers.rb
decidim-core-0.24.3 lib/decidim/data_portability_serializers.rb