Is there a way to specify the policy class in the authorization
method in Pundit
? When you do
authorize @user, :show
It uses the UserPolicy
class, because @user
is a User
(Model) instance. Does anybody know a way to perform the authorize
method on another policy class? like CustomerPolicy
, without the existence of the Customer
model class.