Skip to content

Commit

Permalink
Explain why we require 'active_job'
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Jan 21, 2025
1 parent cd7eb20 commit 39a8c39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sentry-rails/app/jobs/sentry/send_event_job.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true

if defined?(ActiveJob)
# Apparently ActiveJob constant may be defined here but the gem is not really loaded
# So this is a workaround to make sure it's loaded
require "active_job"

module Sentry
Expand Down

0 comments on commit 39a8c39

Please sign in to comment.