Sha256: 924aba25363f74fb9a3114bad077ef10e26eb46d15d110efef74eabee0d17198
Contents?: true
Size: 532 Bytes
Versions: 35
Compression:
Stored size: 532 Bytes
Contents
module Rollbar module Middleware module Rack module TestSession include ExceptionReporter def env_for_with_rollbar(path, env) env_for_without_rollbar(path, env) rescue => 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
35 entries across 35 versions & 1 rubygems