Class: Delayed::Plugins::Bugsnag

Inherits:
Delayed::Plugin
  • Object
show all
Defined in:
lib/bugsnag/integrations/delayed_job.rb

Class Method Summary collapse

Class Method Details

.delayed_job_versionObject

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



16
17
18
19
20
21
# 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