Sha256: cf91cf506c4ec6dad4f99f0592e62962c0edd65e5a5fa79942f1cb4fadda3f9c

Contents?: true

Size: 323 Bytes

Versions: 3

Compression:

Stored size: 323 Bytes

Contents

module Notable
  module DebugExceptions
    extend ActiveSupport::Concern

    included do
      alias_method_chain :render_exception, :pass
    end

    def render_exception_with_pass(env, exception)
      env["action_dispatch.exception"] = exception
      render_exception_without_pass(env, exception)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
notable-0.0.3 lib/notable/debug_exceptions.rb
notable-0.0.2 lib/notable/debug_exceptions.rb
notable-0.0.1 lib/notable/debug_exceptions.rb