Class: Decidim::NotificationGeneratorJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Decidim::NotificationGeneratorJob
- Defined in:
- app/jobs/decidim/notification_generator_job.rb
Instance Method Summary collapse
-
#perform(event, event_class_name, resource, followers, affected_users, extra) ⇒ Object
rubocop:disable Metrics/ParameterLists.
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 'app/jobs/decidim/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 NotificationGenerator.new(event, event_class, resource, followers, affected_users, extra).generate end |