Don't rescue_from when local_requests is set

[ci skip]
pull/7267/head
Oliver Günther 6 years ago
parent a358d45e5f
commit b9baa6cd08
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      app/controllers/application_controller.rb

@ -114,9 +114,11 @@ class ApplicationController < ActionController::Base
status: :bad_request
end
unless Rails.application.config.consider_all_requests_local
rescue_from StandardError do |exception|
render_500 exception: exception
end
end
before_action :user_setup,
:check_if_login_required,

Loading…
Cancel
Save