mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42:32 -05:00
add custom exceptions handling controller
This commit is contained in:
1 parent
f2c6bb1c3d
commit
542a443fb8
5 files changed
+37
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user