Class: Delayed::Plugins::Bugsnag
- Inherits:
-
Delayed::Plugin
- Object
- Delayed::Plugin
- Delayed::Plugins::Bugsnag
- Defined in:
- lib/bugsnag/integrations/delayed_job.rb
Class Method Summary collapse
-
.delayed_job_version ⇒ Object
DelayedJob doesn’t have an easy way to fetch its version, but we can use Gem.loaded_specs to get the version instead.
Class Method Details
.delayed_job_version ⇒ Object
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 |