varvet / pundit

Minimal authorization through OO design and pure Ruby classes
MIT License
8.27k stars 629 forks source link

"include Pundit::Authorization" undefined ? #757

Closed zulquairnain-tx closed 1 year ago

zulquairnain-tx commented 1 year ago

I was using rails 7.0.4.0 when i faced the error "uninitialized constant Pundit::Authorization", I replaced it with "include Pundit" in application_controller and it worked.

zulquairnain-tx commented 1 year ago

closed

albertski commented 7 months ago

I ran into the same issue. Should we be using include Pundit instead of include Pundit::Authorization in Rails 7?

albertski commented 7 months ago

Since this issue is closed, I created a new issue: https://github.com/varvet/pundit/issues/798