Sha256: 032b66631090ecb50b82a2c724437a43621ae602662e5ece5785f125b24e29d1
Contents?: true
Size: 897 Bytes
Versions: 55
Compression:
Stored size: 897 Bytes
Contents
module Errplane module Rails module Middleware module HijackRescueActionEverywhere def self.included(base) base.send(:alias_method_chain, :rescue_action_in_public, :errplane) base.send(:alias_method_chain, :rescue_action_locally, :errplane) end private def rescue_action_in_public_with_errplane(e) handle_exception(e) rescue_action_in_public_without_errplane(e) end def rescue_action_locally_with_errplane(e) handle_exception(e) rescue_action_locally_without_errplane(e) end def handle_exception(e) request_data = errplane_request_data || {} unless Errplane.configuration.ignore_user_agent?(request_data[:user_agent]) Errplane.transmit_unless_ignorable(e, request_data) end end end end end end
Version data entries
55 entries across 55 versions & 1 rubygems