While reading through the source code and its examples, I noticed what I believe is an inconsistency in the example code and example explanation for authorize_resource.
I created two comments on the related lines in the commit where this was introduced. The comments are asking whether my hunch is correct.
This pull request is created in case my hunch proves correct, and the documentation needs to be updated to reflect that.
Changed the explanation of the code in the example to have the same references and order as the related example code.
Previously, the example code referenced a book, whereas the explanation of that example code mentioned a show. The example and the explanation did not match.
Clear up inconsistency in authorize_resource examples
adding :through option to replace :nesting option and moving Resource…
…Authorization class code into ControllerResource
Thanks for your submission! The ryanb/cancan repository has been inactive since Sep 06, 2013.
Since only Ryan himself has commit permissions, the CanCan project is on a standstill.
CanCan has many open issues, including missing support for Rails 4. To keep CanCan alive, an active fork exists at cancancommunity/cancancan. The new gem is cancancan. More info is available at #994.
If your pull request or issue is still applicable, it would be really appreciated if you resubmit it to CanCanCan.
We hope to see you on the other side!