Class: Decidim::DecidimAwesome::ExportAdminActionsJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- Decidim::DecidimAwesome::ExportAdminActionsJob
- Defined in:
- app/jobs/decidim/decidim_awesome/export_admin_actions_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(current_user, format, collection_ids) ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/jobs/decidim/decidim_awesome/export_admin_actions_job.rb', line 8 def perform(current_user, format, collection_ids) collection = serialized_collection(collection_ids) export_data = Exporters.find_exporter(format).new(collection).export ExportMailer.export(current_user, "admin_actions", export_data).deliver_now end |