class Delayed::Plugins::Bugsnag

Public Class Methods

delayed_job_version() click to toggle source

DelayedJob doesn’t have an easy way to fetch its version, but we can use Gem.loaded_specs to get the version instead

# File lib/bugsnag/integrations/delayed_job.rb, line 16
def self.delayed_job_version
  ::Gem.loaded_specs['delayed_job'].version.to_s
rescue StandardError
  # Explicitly return nil to prevent Rubocop complaining of a suppressed exception
  nil
end