Add pdf handling in `render_respond_to_format_with_error_message` by aaronskiba · Pull Request #3482 · DMPRoadmap/roadmap

@aaronskiba

`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

johnpinto1

@aaronskiba