DEV: Disable better_errors by default.

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.

diff --git a/Gemfile b/Gemfile
index b708152..8e4acf6 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'

GitHub sha: 2e2dcb7d