Sha256: ab4d223cec8ca979420486298c0d530ebfa736a4fe5660ba653948ebe4d8d0ba

Contents?: true

Size: 361 Bytes

Versions: 28

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class EmailNotificationGeneratorJob < ApplicationJob
    queue_as :events

    def perform(event, event_class_name, resource, recipient_ids, extra)
      event_class = event_class_name.constantize
      EmailNotificationGenerator.new(event, event_class, resource, recipient_ids, extra).generate
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
decidim-core-0.15.2 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.15.1 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.15.0 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.14.4 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.14.3 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.14.2 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.14.1 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.13.1 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.12.2 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.13.0 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.12.1 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.13.0.pre1 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.12.0 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.11.2 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.12.0.pre app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.11.1 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.11.0.pre1 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.10.1 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.10.0 app/jobs/decidim/email_notification_generator_job.rb
decidim-core-0.9.3 app/jobs/decidim/email_notification_generator_job.rb