Module: Rollbar::Middleware::Rack::TestSession
Class Method Summary
collapse
Instance Method Summary
collapse
#report_exception_to_rollbar
Class Method Details
.included(base) ⇒ Object
14
15
16
17
|
# File 'lib/rollbar/middleware/rack/test_session.rb', line 14
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
|
Instance Method Details
#env_for_with_rollbar(path, env) ⇒ Object
7
8
9
10
11
12
|
# File 'lib/rollbar/middleware/rack/test_session.rb', line 7
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
|