Sha256: 774f1e8e5d8ead7fcf81ccbff56164b727b5a9ec091219ddbb91960f7072be84
Contents?: true
Size: 671 Bytes
Versions: 2
Compression:
Stored size: 671 Bytes
Contents
module Errplane module Rails module Middleware module HijackRenderException def self.included(base) base.send(:alias_method_chain, :render_exception, :errplane) end def render_exception_with_errplane(env, e) controller = env["action_controller.instance"] Errplane.configuration.logger.info("Controller: #{controller}") Errplane.configuration.logger.info("Request Data: #{controller.try(:errplane_request_data)}") Errplane.transmit_unless_ignorable(e, controller.try(:errplane_request_data)) render_exception_without_errplane(env, e) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
errplane-0.2.0 | lib/errplane/rails/middleware/hijack_render_exception.rb |
errplane-0.1.9 | lib/errplane/rails/middleware/hijack_render_exception.rb |