lib/good_job/adapter.rb in good_job-3.12.2 vs lib/good_job/adapter.rb in good_job-3.12.3
- old
+ new
@@ -232,11 +232,11 @@
(Concurrent.on_jruby? && self_caller.grep(%r{jruby/rack/rails_booter}).any?) # EXAMPLE: uri:classloader:/jruby/rack/rails_booter.rb:83:in `load_environment'
end
end
def send_notify?(active_job)
- return true unless active_job.respond_to?(:good_job_notify)
return false unless GoodJob.configuration.enable_listen_notify
+ return true unless active_job.respond_to?(:good_job_notify)
!(active_job.good_job_notify == false || (active_job.class.good_job_notify == false && active_job.good_job_notify.nil?))
end
end
end