better_errors issue has been fixed – removing workaround

This commit is contained in:
Christoph Haas 2018-05-28 16:21:11 +02:00
parent 181ea83540
commit dd491a9b91

View file

@ -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