Sha256: a94e664f4e29586a09b439e49c685fc1efa01f4c79cf8f83ea32af033d016f03
Contents?: true
Size: 556 Bytes
Versions: 11
Compression:
Stored size: 556 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 => e # rubocop:disable Lint/RescueException report_exception_to_rollbar(env, e) raise e 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
11 entries across 11 versions & 1 rubygems