module Pundit::Authorization

def verify_authorized

Other tags:
    See: #skip_authorization -
    See: #authorize -
    See: https://github.com/varvet/pundit#ensuring-policies-and-scopes-are-used -

Returns:
  • (void) -

Raises:
  • (AuthorizationNotPerformedError) - if authorization has not been performed
def verify_authorized
  raise AuthorizationNotPerformedError, self.class unless pundit_policy_authorized?
end