CanCanCommunity/cancancan — pull request #127 by ejholmes (2014-09-29 23:32:38+00:00)
Title: Allow Rule to carry around a hash of options.

This does 3 things.

* Extracts a private `match` method for more reusability.
* Allows a `CanCan::Rule` to carry a hash of options around.
* When a match is found but it doesn't allow access, that match is also provided to CanCan::AccessDenied.