varvet / pundit

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

Fix README with correct Controller include #715

Closed haruska closed 2 years ago

haruska commented 2 years ago

Update documentation for how to include Pundit in your application controller.

Burgestrand commented 2 years ago

Hi! Thanks for the PR, but the README isn't wrong.

Please follow the relevant documentation for the version of Pundit you are using. You can find it at rubydoc.info. If you're using the latest released of version of Pundit then the most recent documentation is also linked to rubydoc.info/gems/pundit at the top of the README.

The main branch on GitHub will sometimes be newer than the code you're actually using, which means that the code from the README on GitHub will not necessarily work in your application.

haruska commented 2 years ago

Of course. My mistake.