Sha256: 8a369696db18ed57850a069f12de6a0031c1c302f667f91665147a429389390e
Contents?: true
Size: 541 Bytes
Versions: 43
Compression:
Stored size: 541 Bytes
Contents
module Rollbar module Middleware class Rack module TestSession include ExceptionReporter def env_for_with_rollbar(path, env) env_for_without_rollbar(path, env) rescue Exception => exception report_exception_to_rollbar(env, exception) raise exception end def self.included(base) base.send(:alias_method, :env_for_without_rollbar, :env_for) base.send(:alias_method, :env_for, :env_for_with_rollbar) end end end end end
Version data entries
43 entries across 43 versions & 1 rubygems