Sha256: d1816bf139bfccdef1ad43c05dd043268bbe4726afc105f1885698505614d723

Contents?: true

Size: 406 Bytes

Versions: 3

Compression:

Stored size: 406 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,exception)
          Errplane.transmit_to_api(exception)
          render_exception_without_errplane(env,exception)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
errplane-0.0.3 lib/errplane/rails/middleware/hijack_render_exception.rb
errplane-0.0.2 lib/errplane/rails/middleware/hijack_render_exception.rb
errplane-0.0.1 lib/errplane/rails/middleware/hijack_render_exception.rb