Sha256: 01eaaa5523ec8cf93ad4b4cd19492d4f887d127a1d4bb0873791e701a23a36a6
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryDocuments class ExportMySuggestionsJob < Decidim::ExportJob def perform(user, document, format) export_manifest = document.component.manifest.export_manifests.find { |manifest| manifest.name == :suggestions } collection = export_manifest.collection.call(document.component, user, :my_suggestions) export_data = Decidim::Exporters.find_exporter(format).new(collection, MySuggestionSerializer).export ExportMailer.export(user, :suggestions, export_data).deliver_now end end end end
Version data entries
2 entries across 2 versions & 1 rubygems