Skip to content

Commit

Permalink
Provided callback in ControllerExtensions, such that one can send a B…
Browse files Browse the repository at this point in the history
…adRequest to Sentry too.
  • Loading branch information
pschijven committed Jun 19, 2024
1 parent 4c5d38d commit 9625aff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/concerns/controller_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module ControllerExtensions
rescue_from CanCan::AccessDenied, with: :handle_access_denied
rescue_from ActionController::ParameterMissing, with: :handle_bad_request
rescue_from ActionController::UnknownFormat, with: :handle_unknown_format
rescue_from ActionController::BadRequest, with: :handle_bad_request
end

protected
Expand Down

0 comments on commit 9625aff

Please sign in to comment.