Created
February 19, 2014 20:03
-
-
Save nixpulvis/9100416 to your computer and use it in GitHub Desktop.
Add pundit authorization to Rails exception logic.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActionDispatch | |
class ExceptionWrapper | |
@@rescue_responses.merge!('Pundit::NotAuthorizedError' => :forbidden) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment