module DispatchRider::AirbrakeErrorHandler

This error handler integrates with airbrake.io, i sending the mesage and environment details.

Public Class Methods

call(message, exception) click to toggle source
# File lib/dispatch-rider/error_handlers.rb, line 15
def self.call(message, exception)
  Airbrake.notify(exception, controller: "DispatchRider", action: message.subject, parameters: message.attributes, cgi_data: ENV.to_hash)
end