Sha256: c00c0964fd9674c0f4485d44c87a640ff4bdb2496f0e679da3c76159d40f4af5

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 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

6 entries across 6 versions & 1 rubygems

Version Path
errplane-0.1.7 lib/errplane/rails/middleware/hijack_render_exception.rb
errplane-0.1.6 lib/errplane/rails/middleware/hijack_render_exception.rb
errplane-0.1.5 lib/errplane/rails/middleware/hijack_render_exception.rb
errplane-0.1.4 lib/errplane/rails/middleware/hijack_render_exception.rb
errplane-0.1.3 lib/errplane/rails/middleware/hijack_render_exception.rb
errplane-0.1.2 lib/errplane/rails/middleware/hijack_render_exception.rb