Sha256: 2b1dcd9c54098625b6ec85263d088531d922c7689f740830acab3cfaee6f3890

Contents?: true

Size: 447 Bytes

Versions: 9

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module TermCustomizer
    module Admin
      class ExportJob < ApplicationJob
        queue_as :default

        def perform(user, set, name, format)
          export_data = Decidim::Exporters.find_exporter(format).new(
            set.translations, TranslationSerializer
          ).export

          ExportMailer.export(user, name, export_data).deliver_now
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-term_customizer-0.23.0 app/jobs/decidim/term_customizer/admin/export_job.rb
decidim-term_customizer-0.22.0 app/jobs/decidim/term_customizer/admin/export_job.rb
decidim-term_customizer-0.21.0 app/jobs/decidim/term_customizer/admin/export_job.rb
decidim-term_customizer-0.20.0 app/jobs/decidim/term_customizer/admin/export_job.rb
decidim-term_customizer-0.19.1 app/jobs/decidim/term_customizer/admin/export_job.rb
decidim-term_customizer-0.19.0 app/jobs/decidim/term_customizer/admin/export_job.rb
decidim-term_customizer-0.18.0 app/jobs/decidim/term_customizer/admin/export_job.rb
decidim-term_customizer-0.17.1 app/jobs/decidim/term_customizer/admin/export_job.rb
decidim-term_customizer-0.17.0 app/jobs/decidim/term_customizer/admin/export_job.rb