Sha256: 694899999ee9a524e7c2babe3b57c50a8c96e34c16f6657e66ab663c0823d0a7
Contents?: true
Size: 691 Bytes
Versions: 18
Compression:
Stored size: 691 Bytes
Contents
module Rollbar module Middleware module Rails module ShowExceptions include ExceptionReporter def render_exception_with_rollbar(env, exception) report_exception_to_rollbar(env, exception) render_exception_without_rollbar(env, exception) end def call_with_rollbar(env) call_without_rollbar(env) rescue => exception report_exception_to_rollbar(env, exception) raise exception end def self.included(base) base.send(:alias_method_chain, :render_exception, :rollbar) base.send(:alias_method_chain, :call, :rollbar) end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems