Sha256: fa2f91e77c3f92716d563b266bfa7c81478731d7d9e329210585044c541e4122

Contents?: true

Size: 359 Bytes

Versions: 23

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class NotificationGeneratorJob < ApplicationJob
    queue_as :decidim_events

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

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
decidim-core-0.7.4 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.7.3 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.7.2 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.7.1 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.7.0 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.6.8 app/jobs/decidim/notification_generator_job.rb
decidim-0.6.8 decidim-core/app/jobs/decidim/notification_generator_job.rb
decidim-core-0.6.7 app/jobs/decidim/notification_generator_job.rb
decidim-0.6.7 decidim-core/app/jobs/decidim/notification_generator_job.rb
decidim-core-0.6.6 app/jobs/decidim/notification_generator_job.rb
decidim-0.6.6 decidim-core/app/jobs/decidim/notification_generator_job.rb
decidim-core-0.6.5 app/jobs/decidim/notification_generator_job.rb
decidim-0.6.5 decidim-core/app/jobs/decidim/notification_generator_job.rb
decidim-core-0.6.4 app/jobs/decidim/notification_generator_job.rb
decidim-0.6.4 decidim-core/app/jobs/decidim/notification_generator_job.rb
decidim-core-0.6.3 app/jobs/decidim/notification_generator_job.rb
decidim-0.6.3 decidim-core/app/jobs/decidim/notification_generator_job.rb
decidim-core-0.6.2 app/jobs/decidim/notification_generator_job.rb
decidim-0.6.2 decidim-core/app/jobs/decidim/notification_generator_job.rb
decidim-core-0.6.1 app/jobs/decidim/notification_generator_job.rb