Sha256: c3123e8a2089bb0d99f99ac1a071db102ff251e1a411d34d850ca878241f6adc
Contents?: true
Size: 622 Bytes
Versions: 18
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true module Decidim class ExportParticipatorySpaceJob < ApplicationJob queue_as :default def perform(user, participatory_space, name, format) export_manifest = participatory_space.manifest.export_manifests.find do |manifest| manifest.name == name.to_sym end collection = export_manifest.collection.call(participatory_space) serializer = export_manifest.serializer export_data = Decidim::Exporters.find_exporter(format).new(collection, serializer).export Decidim::ExportMailer.export(user, name, export_data).deliver_now end end end
Version data entries
18 entries across 18 versions & 1 rubygems