Sha256: 5e93cc77a3e0844a8d1ac361abba520a1b6cc11ea353b60d233af539e2e89308
Contents?: true
Size: 547 Bytes
Versions: 3
Compression:
Stored size: 547 Bytes
Contents
require 'active_support/concern' module ErrMerchant module ShowExceptionsPatch extend ActiveSupport::Concern included { alias_method_chain :render_exception, :template unless Rails.application.config.consider_all_requests_local } private def render_exception_with_template(env, exception) body = ErrMerchant::ErrorsController.action(rescue_responses[exception.class.name]).call(env) log_error(exception) body rescue render_exception_without_template(env, exception) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
err_merchant-0.1.2 | lib/err_merchant/show_exceptions_patch.rb |
err_merchant-0.1.1 | lib/err_merchant/show_exceptions_patch.rb |
err_merchant-0.1.0 | lib/err_merchant/show_exceptions_patch.rb |