Class: Decidim::TermCustomizer::Admin::ExportJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- Decidim::TermCustomizer::Admin::ExportJob
- Defined in:
- app/jobs/decidim/term_customizer/admin/export_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(user, set, name, format) ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/jobs/decidim/term_customizer/admin/export_job.rb', line 9 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 |