roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Add pdf handling in render_respond_to_format_with_error_message

Open aaronskiba opened this issue 1 year ago • 0 comments

Fixes #3414

  • #3414

Changes proposed in this PR:

  • render_respond_to_format_with_error_message is called both when rescuing from Pundit::NotAuthorizedError and ActiveRecord::RecordNotFound. The method works properly with .html format, but prior to this change, ActionController::UnknownFormat was thrown for .pdf format.

aaronskiba avatar May 14 '24 21:05 aaronskiba