Sha256: 589917e29f60095dfb49cfa07eddc8f8fca6afa9c220a66afd9687415abfa0d5
Contents?: true
Size: 443 Bytes
Versions: 5
Compression:
Stored size: 443 Bytes
Contents
# based on http://bit.ly/VGdfVI module Delayed module Plugins class Rollbar < Plugin callbacks do |lifecycle| lifecycle.around(:invoke_job) do |job, *args, &block| begin block.call(job, *args) rescue Exception => e ::Rollbar.report_exception(e, job) raise e end end end end end end Delayed::Worker.plugins << Delayed::Plugins::Rollbar
Version data entries
5 entries across 5 versions & 1 rubygems