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