Sha256: a03b06d835b4078f9776e686954eaf37d4195f7c346df608a971962416af5c4c
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
module Rollbar module Middleware module Rails # Middleware that ensures any database calls to load data for exception reports # are done before connections are cleaned up by the rake connection pool middleware class RollbarRequestStore def initialize(app) @app = app end def call(env) begin @app.call(env) rescue controller = env["action_controller.instance"] if controller and controller.respond_to? :rollbar_person_data env['rollbar.person_data'] = controller.rollbar_person_data end raise end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rollbar-0.12.17 | lib/rollbar/middleware/rails/rollbar_request_store.rb |