From 2e2dcb7d933772801e1c6201217686fb5d593b59 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 12 Jun 2020 09:22:40 +0800 Subject: [PATCH] DEV: Disable better_errors by default. It adds a somewhat unnecessary middleware before `ActionDispatch::DebugExceptions` and totally bypasses it. Apps that register exception interceptors with `ActionDispatch::DebugExceptions` would therefore stop working if better_errors is used. --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index b708152130..8e4acf64cd 100644 --- a/Gemfile +++ b/Gemfile @@ -178,7 +178,7 @@ end group :development do gem 'ruby-prof', require: false, platform: :mri gem 'bullet', require: !!ENV['BULLET'] - gem 'better_errors', platform: :mri + gem 'better_errors', platform: :mri, require: !!ENV['BETTER_ERRORS'] gem 'binding_of_caller' gem 'yaml-lint' gem 'annotate'