Closed 4till2 closed 2 years ago
It looks like the README in the master branch is not the latest version. It is the next version.
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 :)
The main readme doc (line:29) suggests to
include Pundit::Authorization
in theapplication_controller.rb
, which causesNameError: uninitialized constant Pundit::Authorization
. The solution is actually in the api docs to justinclude Pundit
without ::Authorization.