module ExceptionGateway::Vendors

Public Instance Methods

bugsnag_alert(msg, options={}) click to toggle source
# File lib/exception_gateway/vendors/bugsnag.rb, line 3
def bugsnag_alert(msg, options={})
  if ExceptionGateway.config.bugsnag_alert_api_key
    Bugsnag.notify(RuntimeError.new(msg), {:details => options, :api_key => ExceptionGateway.config.bugsnag_alert_api_key})
  else
    Bugsnag.notify(RuntimeError.new(msg), {:details => options})
  end
end
bugsnag_transmit(exception) click to toggle source
# File lib/exception_gateway/vendors/bugsnag.rb, line 11
def bugsnag_transmit(exception)
  Bugsnag.notify(exception)
end