Class: Trackets::Plugins::Sidekiq
- Inherits:
-
Object
- Object
- Trackets::Plugins::Sidekiq
- Defined in:
- lib/trackets/plugins/sidekiq.rb
Instance Method Summary collapse
-
#initialize ⇒ Sidekiq
constructor
A new instance of Sidekiq.
Constructor Details
#initialize ⇒ Sidekiq
Returns a new instance of Sidekiq.
5 6 7 8 9 10 11 |
# File 'lib/trackets/plugins/sidekiq.rb', line 5 def initialize if defined?(::Sidekiq) ::Sidekiq.configure_server do |config| config.error_handlers << Proc.new {|ex,ctx_hash| Trackets.notify(ex, nil, sidekiq_context: ctx_hash) } end end end |