better_errors issue has been fixed – removing workaround
This commit is contained in:
parent
181ea83540
commit
dd491a9b91
1 changed files with 0 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue