Sha256: 9d26a703dad60217d2e61a41c68eb8840251f0f7b8569122e8dde834a35a1b36

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 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.transmit_unless_ignorable(e, env)
          render_exception_without_errplane(env, e)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
errplane-0.1.8 lib/errplane/rails/middleware/hijack_render_exception.rb