You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure exception class whitelist to be reraised by operations processors.
For example, if you use Pundit for authorization, you might
raise a Pundit::NotAuthorizedError at some point during operations
processing. If you want to use Rails' `rescue_from` macro to
catch this error and render a 403 status code, you should add
the `Pundit::NotAuthorizedError` to the `exception_class_whitelist`.
`JSONAPI.configuration.exception_class_whitelist = [Pundit::NotAuthorizedError]`
0 commit comments