module Rollbar::Middleware::Rack::TestSession

Public Class Methods

included(base) click to toggle source
# 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

Public Instance Methods

env_for_with_rollbar(path, env) click to toggle source
# 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 => e # rubocop:disable Lint/RescueException
  report_exception_to_rollbar(env, e)
  raise e
end