We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b246c6 commit 86cb92cCopy full SHA for 86cb92c
lib/rabbit.rb
@@ -190,7 +190,8 @@ def publish(
190
headers: headers,
191
message_id: message_id,
192
)
193
- publish_job_callable = config.publishing_job_class_callable || Publishing::Job
+ job_class = config.publishing_job_class_callable
194
+ publish_job_callable = job_class.is_a?(Proc) ? job_class.call : (job_class || Publishing::Job)
195
queue_name = custom_queue_name || default_queue_name
196
197
if message.realtime?
0 commit comments