Class: Decidim::EmailNotificationGeneratorJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
decidim-core/app/jobs/decidim/email_notification_generator_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(event, event_class_name, resource, followers, affected_users, extra) ⇒ Object

rubocop:disable Metrics/ParameterLists



8
9
10
11
12
13
# File 'decidim-core/app/jobs/decidim/email_notification_generator_job.rb', line 8

def perform(event, event_class_name, resource, followers, affected_users, extra)
  return if event_class_name.nil?

  event_class = event_class_name.constantize
  EmailNotificationGenerator.new(event, event_class, resource, followers, affected_users, extra).generate
end