Skip to content

Commit

Permalink
update README.md to reflect the actual error message
Browse files Browse the repository at this point in the history
  • Loading branch information
smitssjors committed Jun 10, 2024
1 parent 9417149 commit fd74aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ and the given record. It then infers from the action name, that it should call

``` ruby
unless PostPolicy.new(current_user, @post).update?
raise Pundit::NotAuthorizedError, "not allowed to update? this #{@post.inspect}"
raise Pundit::NotAuthorizedError, "not allowed to PostPolicy#update? this Post"
end
```

Expand Down

0 comments on commit fd74aa4

Please sign in to comment.