Sha256: 1bda8f41cdf98c2a26a234e32acccc342c404702603025c7f39d1073efe8361b
Contents?: true
Size: 465 Bytes
Versions: 5
Compression:
Stored size: 465 Bytes
Contents
require 'mailman' module Bugsnag class Mailman def call(mail) begin Bugsnag.before_notify_callbacks << lambda {|notif| notif.add_tab(:mailman, {"message" => mail.to_s}) } yield rescue => ex Bugsnag.auto_notify(ex) raise ensure Bugsnag.clear_request_data end end end end if Mailman.config.respond_to?(:middleware) Mailman.config.middleware.add ::Bugsnag::Mailman end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
bugsnag-1.8.1 | lib/bugsnag/mailman.rb |
bugsnag-1.8.0 | lib/bugsnag/mailman.rb |
bugsnag-1.7.0 | lib/bugsnag/mailman.rb |
bugsnag-1.6.5 | lib/bugsnag/mailman.rb |
bugsnag-1.6.4 | lib/bugsnag/mailman.rb |