rails-devise-pundit
rails-devise-pundit copied to clipboard
undefined method authorize
undefined method `authorize' for #UsersController:0x007f4a55022780
def index
@users = User.all
authorize User
end
https://github.com/RailsApps/rails-devise-pundit/issues/10
This fixed it for me.