lib/err_merchant/engine.rb in err_merchant-0.1.2 vs lib/err_merchant/engine.rb in err_merchant-0.2.0

- old
+ new

@@ -1,10 +1,10 @@ require 'rails/engine' -require 'err_merchant/show_exceptions_patch' +require 'err_merchant/exceptions_app' module ErrMerchant class Engine < ::Rails::Engine - initializer "err_merchant.show_exceptions_patch" do - ActionDispatch::ShowExceptions.send(:include, ShowExceptionsPatch) + initializer "err_merchant.set_exceptions_app" do |app| + app.config.exceptions_app = ErrMerchant::ExceptionsApp.new end end end