Sha256: 3f8e1c7080a295a63febaa0de5339148edbbafacf85be608684a109d5b450513

Contents?: true

Size: 503 Bytes

Versions: 66

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class NotificationGeneratorJob < ApplicationJob
    queue_as :events

    # rubocop:disable Metrics/ParameterLists
    def perform(event, event_class_name, resource, followers, affected_users, extra)
      return if event_class_name.nil?

      event_class = event_class_name.constantize
      NotificationGenerator.new(event, event_class, resource, followers, affected_users, extra).generate
    end
    # rubocop:enable Metrics/ParameterLists
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
decidim-core-0.26.8 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.27.4 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.27.3 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.26.7 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.26.5 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.27.2 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.27.1 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.26.4 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.27.0 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.26.3 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.27.0.rc2 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.27.0.rc1 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.26.2 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.26.1 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.26.0 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.26.0.rc2 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.26.0.rc1 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.25.2 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.25.1 app/jobs/decidim/notification_generator_job.rb
decidim-core-0.25.0 app/jobs/decidim/notification_generator_job.rb