Update documentation to inform users about block limitation #276

mratzloff opened this Issue Feb 11, 2011 · 2 comments

2 participants


Hi Ryan,

Please update the documentation to account for this:

Using blocks to define abilities in CanCan raises an exception

This tripped me up as well and I can't find anything in the documentation about it.



Thanks. I'll add this to the documentation. I should probably improve the wording of the exception too.


Closing this since I've updated the documentation in Defining Abilities with Blocks to mention that accessible_by will raise an exception if SQL is not provided. The exception message is also improved.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment