From dd491a9b91ec272a41a68dd8bcdd4ce397a57bfb Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 28 May 2018 16:21:11 +0200 Subject: [PATCH] =?UTF-8?q?better=5Ferrors=20issue=20has=20been=20fixed=20?= =?UTF-8?q?=E2=80=93=20removing=20workaround?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/application_controller.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 212b556..4e0bce0 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -8,7 +8,6 @@ class ApplicationController < ActionController::Base before_action :get_current_users_screenshots, :debian_sso # TODO: Deprecation. What is the replacement for Rails.env.development? ? - before_action :better_errors_hack, if: -> { Rails.env.development? } # Query for packages that were uploaded by the current user. # If the user is anonymous then find the uploads by the cookie token. @@ -53,10 +52,4 @@ class ApplicationController < ActionController::Base my_welcome_path end - # better_errors gets extremely slow without this hack - # see: https://github.com/charliesome/better_errors/issues/341 - def better_errors_hack - env['puma.config'].options.user_options.delete :app - end - end