Upgrading Pundit 2.1.0 to Pundit 2.3.1 - breaking changes #808
Unanswered
jgarner828
asked this question in
Q & A
Replies: 1 comment 1 reply
-
Hi! First and foremost, have a look at the CHANGELOG to get a comprehensive list of changes between 2.1 and 2.3. Whatever incompatibility you're running into is probably listed there. Something that would help:
Other notes:
Final FYI:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I've recently taken on a major version upgrade of my orgs Rails service. We have upgraded Rails from version 3 to version 6, but the newest version has introduced a breaking change in our authorization. The version upgrade has changed Pundit from 2.1.0 which was stable and working in the service to 2.3.1, and now everything is returning a 403 unauthorized error on the service.
First tests required a change in the ApplicationController to move to include Pundit::Authorization, which was a change I made. Nothing else has been modified in my Policy files, and I am not sure what is now broken in my API calls to this service.
I am not sure how to best track down what is going wrong with my Authorization. Also, I cannot find a list of the helper methods provided by Pundit.
Is there a way to handle this without rewriting a few dozen policies?
Beta Was this translation helpful? Give feedback.
All reactions