Sha256: b0fba28373edf4bd9347b0d454d6e72514b88a826b2e9e8405bc18c33c0df66e
Contents?: true
Size: 341 Bytes
Versions: 14
Compression:
Stored size: 341 Bytes
Contents
require 'faraday' module AirbrakeAPI module Middleware class RaiseServerError < Faraday::Response::Middleware def on_complete(env) case env[:status].to_i when 403 raise AirbrakeError.new('SSL should be enabled - use AirbrakeAPI.secure = true in configuration') end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems