Replies: 1 comment
-
I have a failing test here that demonstrates the problem: brendon@1ed2e20 Perhaps I'm misunderstanding the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have something like this:
When I call
authorize! my_instance, to: :view?, with: InstancePolicy
on a deletedcomponent_instance
and inspect the exception:exception.result.reasons
I get:What I really want is
:deleted
for the reason so that I can provide a nice error message.Is there a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions