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-0.6.1 decidim-core/app/jobs/decidim/notification_generator_job.rb
decidim-core-0.6.0 app/jobs/decidim/notification_generator_job.rb
decidim-0.6.0 decidim-core/app/jobs/decidim/notification_generator_job.rb