venuu / jsonapi-authorization

Authorization for JSONAPI::Resource
http://www.rubydoc.info/github/venuu/jsonapi-authorization
MIT License
132 stars 59 forks source link

pundit_user can not be modified #142

Closed Babar-Livestorm closed 2 years ago

Babar-Livestorm commented 2 years ago

Hi I am using version 3.0.2 of the gem, and I am trying to change the pundit_user, but no success, I followed the documentation provided. But the code breaks on line 317 of pundit.rb NameError: undefined local variable or method `current_user'. I tried overriding the pundit_user in the controller as well. but it doesn't make a difference. Any help would be appreciated.

valscion commented 2 years ago

Can you make a small, minimal reproduction repository showcasing the issue?