varvet / pundit

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

Readme docs error #705

Closed 4till2 closed 2 years ago

4till2 commented 2 years ago

The main readme doc (line:29) suggests to include Pundit::Authorization in the application_controller.rb, which causes NameError: uninitialized constant Pundit::Authorization. The solution is actually in the api docs to just include Pundit without ::Authorization.

sijiaoh commented 2 years ago

It looks like the README in the master branch is not the latest version. It is the next version.

image

Burgestrand commented 2 years ago

Yes, the README in master is newer than the most recent version of the Pundit gem. The first link in the table of contents links to the API documentation which should be accurate with the most recently released gem :)