Module: Airbrake::UserInformer::MiddlewareExtension

Defined in:
lib/airbrake/user_informer.rb

Instance Method Summary collapse

Instance Method Details

#notify_airbrakeObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/airbrake/user_informer.rb', line 8

def notify_airbrake(*)
  if Airbrake.user_information
    notice = super
    if (request = ::Airbrake::Rack::RequestStore[:request])
      request[Middleware::ENV_KEY] = notice
    end
    notice
  else
    super
  end
end