Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pdf handling in render_respond_to_format_with_error_message
`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.
- Loading branch information