Store attribute in CanCan::Unauthorized exception #716

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
@jhawthorn

Stores the attribute for which authorized in fails in the raised CanCan::Unauthorized when calling ability.authorize!

This should help with error messages and debugging.

@travisbot

This comment has been minimized.

Show comment
Hide comment
@travisbot

travisbot Aug 12, 2012

This pull request passes (merged 1c83429 into aed9f26).

This pull request passes (merged 1c83429 into aed9f26).

@xhoy

This comment has been minimized.

Show comment
Hide comment
@xhoy

xhoy Apr 10, 2014

Dear submitter, Since cancan/raynB hasn't been active for more than 6 months and no body else then ryam himself has commit permissions the cancan project is on a stand still.
Since cancan has several issues including missing support for rails 4 cancan is moving forward to cancancan. More details on: #994

If your feel that your pull request or bug is still applicable (and hasn't been merged in to cancan) it would be really appreciated if you would resubmit it to cancancan (https://github.com/cancancommunity/cancancan)

We hope to see you on the other side!

xhoy commented Apr 10, 2014

Dear submitter, Since cancan/raynB hasn't been active for more than 6 months and no body else then ryam himself has commit permissions the cancan project is on a stand still.
Since cancan has several issues including missing support for rails 4 cancan is moving forward to cancancan. More details on: #994

If your feel that your pull request or bug is still applicable (and hasn't been merged in to cancan) it would be really appreciated if you would resubmit it to cancancan (https://github.com/cancancommunity/cancancan)

We hope to see you on the other side!

@jhawthorn jhawthorn closed this Aug 19, 2016

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