Closed albertski closed 4 months ago
No, include Pundit
is deprecated and will be removed in a future release.
With the limited information provided my first guess is that you might be using an old version of Pundit.truby
Moving this to discussions.
Below is a simplified version of a concern I use in my Controllers.
When I upgraded to Rails 7, I got the following error:
The issue disappears if I use
include Pundit
instead ofinclude Pundit::Authorization
. Should we be usinginclude Pundit::Authorization
in Rails 7?