I have a Pundit policy that's working properly, but the way I've written it doesn't seem to be the "best" way to express this. It's a policy with three "or" statements. Here's the code:
def update?
user.admin? or user.moderator? || user.id == @artist.user_id
end
What's another way I could write this? Or is this the best way to express this?