Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update documentation to inform users about block limitation #276

Closed
mratzloff opened this Issue · 2 comments

2 participants

@mratzloff

Hi Ryan,

Please update the documentation to account for this:

Using blocks to define abilities in CanCan raises an exception
http://stackoverflow.com/questions/3557091/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!

@ryanb
Owner

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

@ryanb
Owner

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
Something went wrong with that request. Please try again.