Class: Decidim::NotificationGeneratorJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/decidim/notification_generator_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(event, event_class_name, resource, recipient_ids, extra) ⇒ Object



7
8
9
10
# File 'app/jobs/decidim/notification_generator_job.rb', line 7

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