add custom exceptions handling controller

This commit is contained in:
Pete Matsyburka
2023-11-22 01:41:39 +02:00
parent f2c6bb1c3d
commit 542a443fb8
5 changed files with 37 additions and 0 deletions
+2
View File
@@ -25,6 +25,8 @@ module DocuSeal
config.i18n.available_locales = %i[en en-US en-GB es-ES fr-FR pt-PT de-DE]
config.i18n.fallbacks = [:en]
config.exceptions_app = ->(env) { ErrorsController.action(:show).call(env) }
config.action_view.frozen_string_literal = true
config.middleware.insert_before ActionDispatch::Static, Rack::Deflater