lib/raven/integrations/rails/active_job.rb in sentry-raven-2.7.2 vs lib/raven/integrations/rails/active_job.rb in sentry-raven-2.7.3

- old
+ new

@@ -26,10 +26,14 @@ Context.clear! BreadcrumbBuffer.clear! end def already_supported_by_specific_integration?(job) - ALREADY_SUPPORTED_SENTRY_ADAPTERS.include?(job.class.queue_adapter.to_s) + if ::Rails.version.to_f < 5.0 + ALREADY_SUPPORTED_SENTRY_ADAPTERS.include?(job.class.queue_adapter.to_s) + else + ALREADY_SUPPORTED_SENTRY_ADAPTERS.include?(job.class.queue_adapter.class.to_s) + end end def raven_context(job) ctx = { :active_job => job.class.name,