diff --git a/CHANGELOG.md b/CHANGELOG.md index fdf01fc..49d9ce5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ### Unreleased +* The `parent_class` configuration now also changes the parent class for `Noticed::EventJob`. + ### 2.4.1 * Include private methods when checking if respond_to?(:method). Fixes #475 diff --git a/app/jobs/noticed/event_job.rb b/app/jobs/noticed/event_job.rb index eaf817e..52228c4 100644 --- a/app/jobs/noticed/event_job.rb +++ b/app/jobs/noticed/event_job.rb @@ -1,7 +1,5 @@ module Noticed - class EventJob < ApplicationJob - queue_as :default - + class EventJob < Noticed.parent_class.constantize def perform(event) # Enqueue bulk deliveries event.bulk_delivery_methods.each_value do |deliver_by|